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
list.shift(1) is working. However, it printed following message.
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
(called from ~/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/redis-objects-1.7.0/lib/redis/objects/connection_pool_proxy.rb:10:in `block in method_missing'}
solution
I think that following code should use pipleline instead of redis.
I believe that this issue would also apply to several other commands.
The deprecations will appear anywhere that redis.multi or redis.pipelined are called with a block without arguments.
By my quick search it looks like there are changes to be made in the following files:
lib/redis/objects/hashes.rb
lib/redis/objects/sets.rb
lib/redis/objects/lists.rb
lib/redis/list.rb
lib/redis/sorted_set.rb
problem
I used
Redis::List#shift
list.shift(1)
is working. However, it printed following message.solution
I think that following code should use
pipleline
instead ofredis
.redis-objects/lib/redis/list.rb
Lines 66 to 76 in de1d772
I'll probably fix it like this.
Could you please fix it?
The text was updated successfully, but these errors were encountered: