Is there a database-based deduction policy in redis when RAM is full

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.

+4
source share
1 answer

/ - . Redis, , , . , , .

+4

Source: https://habr.com/ru/post/1612540/


All Articles