I use 5 databases on my redis server. I want to cut keys belonging to a specific database using the LRU mechanism. Is it possible?
I read this: how-to-make-redis-choose-lru-eviction-policy-for-only-some-of-the-keys .
But all my databases use time to write their records. Therefore, do not use the volatile-lru policy .
I tried the volatile-ttl policy , but other databases have less ttl for their keys. Therefore, they will be evicted, which I do not want.
source
share