Gemfile
:kredis
gem. Make sure that you have a Redis server running and that you have followed the Kredis installation instructions to set up your config/redis/shared.yml
.allkeys-lru
or volatile-lru
policy is likely your best bet for an All Futures configuration, depending on whether you use the expire
option.noeviction
policy for Sidekiq and other queues that you want to complain loudly if they are filling up, and one allkeys-lru`
for Rails caching and All Futures.
hiredis-rb
is billed as a wrapper around the high-performance native Redis library. For a long time, it seemed like a no-brainer to use it because who doesn't love "fast"?hiredis
gem still doesn't appear to support SSL connections. This is problematic in many deployment environments, and the delay has caused many Rails developers to question whether they really need the added complexity, given Redis is usually the fastest part of a request anyhow.