77d380dd6b
- refactor Redis config in Redis::Config Module - unit tests for Redis::Config module
10 lines
389 B
Ruby
10 lines
389 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)
|
|
|
|
# https://github.com/mperham/sidekiq/issues/4591
|
|
# TODO once sidekiq remove we can remove this
|
|
Redis.exists_returns_integer = false
|