Refactor (ruby) redis configuration (#31694)
This commit is contained in:
parent
a23b3747ac
commit
388d5473e1
20 changed files with 295 additions and 90 deletions
|
@ -14,7 +14,7 @@ module Chewy
|
|||
end
|
||||
|
||||
def leave
|
||||
RedisConfiguration.with do |redis|
|
||||
RedisConnection.with do |redis|
|
||||
redis.pipelined do |pipeline|
|
||||
@stash.each do |type, ids|
|
||||
pipeline.sadd("chewy:queue:#{type.name}", ids)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue