Hello!
I see in the output INFO MEMORY:
maxmemory_policy:noeviction
can i change this policy?
127.0.0.1:6379> info server
redis_version:7.4.0
dragonfly_version:df-v1.28.1
as far as I understand - no!?
Hello!
I see in the output INFO MEMORY:
maxmemory_policy:noeviction
can i change this policy?
127.0.0.1:6379> info server
redis_version:7.4.0
dragonfly_version:df-v1.28.1
as far as I understand - no!?
Hi @KleinenberG,
I don’t think Dragonfly allows changing the eviction policy on the fly while the server is running at the moment, but a server flag (and a restart of the server) can be used.
In the meantime, we don’t have the same eviction policies Redis has. We have only one cache mode, which is a sophisticated and efficient LRU + LFU combined algorithm.
After the change, the below is what I get. And Dragonfly would evict keys when the used memory is getting close to maxmemory.
dragonfly$> INFO MEMORY
# ...
cache_mode:cache
maxmemory_policy:eviction
# ...
Thank you very much for your answer!
It works!