# Example configuration for rust-cache
# Host/IP to listen on (IPv4 or IPv6 literal)
= "127.0.0.1"
# Listen address (alias for host, overrides host if set)
# listen = "0.0.0.0"
# TCP port to listen on
= 7777
# Maximum memory for values, in megabytes.
# If omitted, rust-cache will auto-detect total RAM on Linux and use ~50% of it.
= 1024
# Socket read buffer size per connection, in kilobytes.
# Larger values can improve throughput for large payloads at the cost of more RAM per connection.
= 16
# Authentication (optional)
# username = "admin"
# password = "your-secure-password"
# Rate limiting for failed login attempts
# max_failed_attempts = 3 # Lock after 3 failed attempts (default: 3)
# lockout_duration_seconds = 600 # Lock for 10 minutes (default: 600)