Revert "chore: Use multiple connections in Redis connection pool (#5574)"
This reverts commit f2753df8df
.
This commit is contained in:
parent
5dd58102e0
commit
6a8b34d1cc
1 changed files with 4 additions and 8 deletions
|
@ -1,14 +1,10 @@
|
|||
redis = Rails.env.test? ? MockRedis.new : Redis.new(Redis::Config.app)
|
||||
|
||||
# Alfred
|
||||
# Add here as you use it for more features
|
||||
# Used for Round Robin, Conversation Emails & Online Presence
|
||||
$alfred = ConnectionPool::Wrapper.new(size: 5, timeout: 3) do
|
||||
redis = Rails.env.test? ? MockRedis.new : Redis.new(Redis::Config.app)
|
||||
Redis::Namespace.new('alfred', redis: redis, warning: true)
|
||||
end
|
||||
$alfred = ConnectionPool::Wrapper.new(size: 5, timeout: 3) { Redis::Namespace.new('alfred', redis: redis, warning: true) }
|
||||
|
||||
# Velma : Determined protector
|
||||
# used in rack attack
|
||||
$velma = ConnectionPool::Wrapper.new(size: 5, timeout: 3) do
|
||||
redis = Rails.env.test? ? MockRedis.new : Redis.new(Redis::Config.app)
|
||||
Redis::Namespace.new('velma', redis: redis, warning: true)
|
||||
end
|
||||
$velma = ConnectionPool::Wrapper.new(size: 5, timeout: 3) { Redis::Namespace.new('velma', redis: redis, warning: true) }
|
||||
|
|
Loading…
Reference in a new issue