
Redis Cache limits
I am using Dokploy and tried to set some limits for redis.
Here is what I have done.
from terminal I set:
CONFIG SET maxmemory 2gb
CONFIG Set maxmemory-policy allkeys-lru
Works great until redis is restarted, then it reset to no limits or policy
Someone suggested I use the Advanced settings in Dokploy however, that doens't seem to work either
There is the screen and I also have tried few other variations
I have tried the Advanced settings Command with Command "resdis-server" and argumanets
- redis-server --maxmemory 4gb
- redis-server --maxmemory-policy allkeys-lfu
With variations of arguments like
- --maxmemory
- 4g
- --maxmemory-policy
- allkeys-lfu
and
- --maxmemory 4gb
- --maxmemory-policy allkeys-lfu
every reload / stop and start resets it
I joined the Dokploy discord server there doesn't seem to be any help either.
How to do I set the limit and policy and make stay set even when restarted
I tried CONFIG rewrite but it say there is file to rewrite