# Memory management - prevent Redis from consuming all system memory # Adjust maxmemory based on your Digital Ocean droplet size # For a 4GB droplet, 512MB is reasonable; for 8GB, use 1gb maxmemory 1536mb maxmemory-policy allkeys-lru # Persistence - save snapshots periodically save 900 1 save 300 10 save 60 10000 # Disable transparent huge pages warning activedefrag yes # Connection limits timeout 300 tcp-keepalive 60