# tinyredis.conf — example configuration file
#
# Usage: tinyredis /path/to/tinyredis.conf
# ── Network ──────────────────────────────────────────────────────────────────
# Accept connections on this IP address.
bind 127.0.0.1
# TCP port to listen on.
port 6379
# ── Persistence ───────────────────────────────────────────────────────────────
# Enable Append-Only File persistence.
appendonly yes
# Name of the AOF file (relative to the working directory).
appendfilename "tinyredis.aof"
# How often to fsync the AOF file to disk.
# always — fsync after every write (safest, slowest)
# everysec — fsync once per second in the background (default, recommended)
# no — let the OS decide (fastest, least safe)
appendfsync everysec
# ── Memory ────────────────────────────────────────────────────────────────────
# Maximum memory limit. 0 = no limit.
# Supports units: kb, mb, gb (e.g. 100mb, 1gb)
maxmemory 0
# Eviction policy when maxmemory is reached.
# Stored and reported in INFO; enforcement not yet implemented.
# noeviction | allkeys-lru | volatile-lru | allkeys-random | volatile-random
maxmemory-policy noeviction
# ── Security ──────────────────────────────────────────────────────────────────
# Require clients to issue AUTH <password> before processing other commands.
# An empty string or omitting this directive disables authentication.
# requirepass ""