# Redis configuration for Odoo session management and caching
port 6379
bind 0.0.0.0

# Memory Limits
maxmemory 2gb
maxmemory-policy allkeys-lru

# Persistence (Required so users do not get logged out when Redis restarts)
save 900 1
save 300 10
save 60 10000

appendonly yes
appendfilename "appendonly.aof"
appendfsync everysec

# Performance Tuning
tcp-backlog 511
timeout 0
tcp-keepalive 300
databases 16
