I want to configure Redis as an LRU cache. I'd like to avoid repeating myself for the memory limits. If I do
command: redis-server --maxmemory-policy allkeys-lru
deploy:
resources:
limits:
memory: 1.5G
would it be enough or do I really need to put in something like this (I used a slightly lower size for the OS etc)
command: redis-server --maxmemory-policy allkeys-lru --maxmemory 1.4G
deploy:
resources:
limits:
memory: 1.5G