# Redis configuration for mockupAWS

# Persistence
save 900 1
save 300 10
save 60 10000

# RDB file
rdbcompression yes
rdbchecksum yes
dbfilename dump.rdb
dir /data

# Memory management
maxmemory 512mb
maxmemory-policy allkeys-lru
maxmemory-samples 5

# Connection settings
timeout 0
tcp-keepalive 300

# Logging
loglevel notice
logfile ""

# Client output buffer limits
client-output-buffer-limit normal 0 0 0
client-output-buffer-limit replica 256mb 64mb 60
client-output-buffer-limit pubsub 32mb 8mb 60

# Performance
hz 10
dynamic-hz yes

# Security
protected-mode no

# Disable dangerous commands (optional for production)
# rename-command FLUSHDB ""
# rename-command FLUSHALL ""
