Redis Config Builder

Generate a redis.conf with persistence, memory, and security settings

Builds a redis.conf covering bind address, port, protected-mode, requirepass, a maxmemory limit with eviction policy, and your choice of RDB snapshots, AOF, both, or no persistence, plus timeout and keepalive tuning.

What is the difference between RDB and AOF persistence?

RDB writes point-in-time snapshots on an interval, which is compact and fast to restore but can lose recent writes on a crash. AOF logs every write operation, giving better durability at the cost of larger files and slower restarts.

A safe redis.conf in a few clicks

A default Redis listens broadly and persists nothing useful, which is fine for a quick test and dangerous in production. This builder generates a redis.conf with the settings that matter: a locked-down bind and password, a memory cap with the right eviction policy, and a persistence strategy that matches your use case.

How it works

The config is grouped into clear sections. Network sets bind, port, protected-mode, timeout, and tcp-keepalive. Security emits requirepass when you supply a password, or a commented reminder if you do not. Memory management writes your maxmemory limit and maxmemory-policy. Persistence changes shape with your choice: RDB writes the classic save snapshot rules and a dump.rdb; AOF turns on appendonly with your chosen appendfsync durability; “both” combines them; and “none” disables saving entirely with save "" for a pure cache. A logging block rounds it out. Everything is generated in your browser.

Tips and example

  • For a cache, set a real maxmemory (say 256mb) and allkeys-lru — without a limit Redis will grow until the host runs out of RAM.
  • For a durable store, use appendonly yes with appendfsync everysec and keep noeviction so writes fail loudly rather than silently dropping keys.
  • Always set requirepass to a long random string and never paste a real production password into a shared screen.
  • The dir defaults to /var/lib/redis; make sure the redis user owns that path before starting the server.