Chatwoot/config/initializers/01_redis.rb
Sojan Jose b44f9b792b
chore: Block & throttle abusive requests (#2706)
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
2021-07-27 21:27:23 +05:30

10 lines
379 B
Ruby

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 = Redis::Namespace.new('alfred', redis: redis, warning: true)
# Velma : Determined protector
# used in rack attack
$velma = Redis::Namespace.new('velma', redis: redis, warning: true)