# Redis persistence configuration for rag_system
# IMPORTANT: load Redis Stack modules (RediSearch, JSON, etc.)
include /etc/redis-stack.conf

# Store data under the Docker volume mount

dir /data

# RDB snapshotting (default intervals)
save 900 1
save 300 10
save 60 10000

dbfilename dump.rdb

# Enable AOF for stronger durability
appendonly yes
appendfsync everysec

# Optional: rewrite settings for AOF maintenance
no-appendfsync-on-rewrite no
aof-use-rdb-preamble yes
