# Bind only to localhost for security bind 127.0.0.1 ::1 # Set memory limit maxmemory 500mb maxmemory-policy volatile-ttl