Skip to content

Quickstart

FrogDB is wire-compatible with RESP2 and RESP3, so you can use your standard Redis client.

Terminal window
# Start with defaults (port 6379, persistence enabled)
frogdb-server
# Or with a config file
frogdb-server --config frogdb.toml
# Auto-detect shards, bind to all interfaces
frogdb-server -b 0.0.0.0 -s auto
Terminal window
redis-cli -p 6379
127.0.0.1:6379> SET greeting "Hello from FrogDB!"
OK
127.0.0.1:6379> GET greeting
"Hello from FrogDB!"
127.0.0.1:6379> INFO server
# Server info including version

Any Redis client works with FrogDB. Here are the official clients for popular languages:

Generate a default config file:

Terminal window
frogdb-server --generate-config > frogdb.toml

Common options:

[server]
bind = "0.0.0.0" # Listen on all interfaces
port = 6379
num-shards = 0 # 0 = auto-detect CPU cores
[persistence]
enabled = true
data-dir = "/var/lib/frogdb"
durability-mode = "periodic" # async, periodic, sync
sync-interval-ms = 1000
[memory]
maxmemory = 4294967296 # 4 GB
maxmemory-policy = "allkeys-lru"

See Configuration Reference for all options, or the Reference Config File for a complete example with defaults.