In-memory key-value store
A fast key-value store with a durable heart.
Zongarl serves reads and writes from memory in microseconds and persists to disk in the background, so a restart never loses your data.
Read the documentation →$ zongarl serve
Zongarl APIv1
GET /v1/kv/{key}Read a value.PUT /v1/kv/{key}Set a value (optional ttl header).DELETE /v1/kv/{key}Delete a key.GET /v1/kv/_scanStream keys matching a prefix.Capabilities
01
Microsecond reads
Keys are served straight from memory; a typical GET or SET completes in tens of microseconds.
02
Durable by design
Writes are appended to a log and snapshotted, so a crash or restart replays cleanly.
03
TTL & eviction
Set a time-to-live per key and pick an eviction policy when memory runs tight.
Zongarl In-memory·In-memory speed·Background persistence·TTL & eviction·REST API
Set a key, get it back.
No schema, no setup — start the server and use the API.
- 1Start Zongarl on any host.
- 2Set a key with an optional TTL.
- 3Read it back over the API.
# start the store
$ zongarl serve --data ./zongarl
# set a key with a 60s ttl
$ curl -X PUT :6100/v1/kv/session \
-H 'ttl: 60' -d 'abc123'
→ ok
# read it
$ curl /v1/kv/session