2022-11-02 03:19:42 +00:00
|
|
|
Rails.application.reloader.to_prepare do
|
|
|
|
# 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
|
2021-07-27 15:57:23 +00:00
|
|
|
|
2022-11-02 03:19:42 +00:00
|
|
|
# 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
|
2022-11-01 23:49:26 +00:00
|
|
|
end
|