feat: ym new key
This commit is contained in:
@@ -348,7 +348,7 @@ func (r *apiRepository) GetProducts(ctx context.Context, marketplaceID int, req
|
||||
errChan <- err
|
||||
return
|
||||
}
|
||||
key := GetProductKey(strconv.Itoa(int(businessID)) + strconv.Itoa(marketplaceID))
|
||||
key := GetProductKey(strconv.Itoa(int(businessID)) + ":" + strconv.Itoa(marketplaceID))
|
||||
var cachedMessage pb.GetProductsResponse
|
||||
err = redis.ReadProtoMessage(ctx, key, &cachedMessage)
|
||||
if err == nil && len(cachedMessage.Offers) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user