chore: debug heorku redis issue
This commit is contained in:
parent
86ca7f4a8d
commit
ddd79affec
1 changed files with 13 additions and 15 deletions
|
@ -1,16 +1,14 @@
|
||||||
Rails.application.reloader.to_prepare do
|
# Alfred
|
||||||
# Alfred
|
# Add here as you use it for more features
|
||||||
# Add here as you use it for more features
|
# Used for Round Robin, Conversation Emails & Online Presence
|
||||||
# Used for Round Robin, Conversation Emails & Online Presence
|
$alfred = ConnectionPool::Wrapper.new(size: 5, timeout: 3) do
|
||||||
$alfred = ConnectionPool::Wrapper.new(size: 5, timeout: 3) do
|
redis = Rails.env.test? ? MockRedis.new : Redis.new(Redis::Config.app)
|
||||||
redis = Rails.env.test? ? MockRedis.new : Redis.new(Redis::Config.app)
|
Redis::Namespace.new('alfred', redis: redis, warning: true)
|
||||||
Redis::Namespace.new('alfred', redis: redis, warning: true)
|
end
|
||||||
end
|
|
||||||
|
# Velma : Determined protector
|
||||||
# Velma : Determined protector
|
# used in rack attack
|
||||||
# used in rack attack
|
$velma = ConnectionPool::Wrapper.new(size: 5, timeout: 3) do
|
||||||
$velma = ConnectionPool::Wrapper.new(size: 5, timeout: 3) do
|
redis = Rails.env.test? ? MockRedis.new : Redis.new(Redis::Config.app)
|
||||||
redis = Rails.env.test? ? MockRedis.new : Redis.new(Redis::Config.app)
|
Redis::Namespace.new('velma', redis: redis, warning: true)
|
||||||
Redis::Namespace.new('velma', redis: redis, warning: true)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue