You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can I somehow use e.g. redis.multi method to do this only once?
I tried wrapping it somehow into:
transactions=Transaction.limit(100).to_a
$redis.multidotransactions.each{ |e| e.locked_at}# do the preloadend# later I expected to use the `.locked_at` without additional call to Redis
but this resulted only in a warning:
Pipelining commands on a Redis instance is deprecated and will be removed in Redis 5.0.0.
redis.multi do
redis.get("key")
end
should be replaced by
redis.multi do |pipeline|
pipeline.get("key")
end
Thank you for your help
The text was updated successfully, but these errors were encountered:
Is there a way to preload multiple attributes at once?
Having:
triggers 100
Kredis Proxy ....
callsCan I somehow use e.g.
redis.multi
method to do this only once?I tried wrapping it somehow into:
but this resulted only in a warning:
Thank you for your help
The text was updated successfully, but these errors were encountered: