2
0

Refactor (ruby) redis configuration (#31694)

This commit is contained in:
David Roetzel
2024-09-02 16:19:55 +02:00
committed by GitHub
parent a23b3747ac
commit 388d5473e1
20 changed files with 295 additions and 90 deletions

View File

@@ -2,10 +2,10 @@
module Redisable
def redis
Thread.current[:redis] ||= RedisConfiguration.pool.checkout
Thread.current[:redis] ||= RedisConnection.pool.checkout
end
def with_redis(&block)
RedisConfiguration.with(&block)
RedisConnection.with(&block)
end
end