Redis In-Memory Production Cache & Eviction Config
# Redis In-Memory Production Cache Tier
# Optimized for zero disk bottleneck and LRU eviction
port 6379
bind 127.0.0.1 ::1
protected-mode yes
timeout 300
tcp-keepalive 60
# Max Memory Limit & Eviction Policy
maxmemory 2gb
maxmemory-policy volatile-lru
maxmemory-samples 7
# Disable Disk Persistence for Pure Cache Tier
save ""
appendonly no
# Concurrency & Performance
io-threads 4
io-threads-do-reads yes
lazyfree-lazy-eviction yes
lazyfree-lazy-expire yes
lazyfree-lazy-server-del yes
# Security
rename-command FLUSHALL ""
rename-command FLUSHDB ""
rename-command DEBUG ""