> So have these config settings changed?? Is this in the docs somewhere
> seeing as we are in 2.2.5
Actually i don't know if there are any changes in expiration policies
in 2.2.5 as i'm still on 2.2.2. And i'm not sure whether the document
that describes them exists. But usually all the settings are described
in redis.conf file. For most settings it contains detailed
description.
> Is there one that matches closely to what memcached does?
I think you need allkeys-lru to make Redis act as memcached. AFAIK
memcached uses lru policy for every key it stores.
The only difference in Redis here is that it is possible to allow only
volatile keys be expired and keep other keys persistent in memory.
That is, in Redis all values doesn't expire on default until you
explicitly set time to live with command EXPIRE. Such keys for that
time to live is defined are called volatile. In some cases it can be
useful. For example you have a few keys that should never expire (e.g.
lookups or some resources that are not changed and you should be able
to read them fast at any time) so you can use policy volatile-lru to
make sure these keys will never be evicted. But if you decide to use
volatile-lru you should do it with care because if there are too many
keys that will never expire they may consume all the memory and there
will be no room to store volatile keys.