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
|
2022-11-03 00:31:20 +00:00
|
|
|
$alfred = ConnectionPool.new(size: 5, timeout: 3) do
|
2022-11-02 03:19:42 +00:00
|
|
|
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
|
2022-11-03 00:31:20 +00:00
|
|
|
$velma = ConnectionPool.new(size: 5, timeout: 3) do
|
|
|
|
config = Rails.env.test? ? MockRedis.new : Redis.new(Redis::Config.app)
|
|
|
|
Redis::Namespace.new('velma', redis: config, warning: true)
|
2022-11-02 03:19:42 +00:00
|
|
|
end
|
2022-11-01 23:49:26 +00:00
|
|
|
end
|