Is an in-memory cache server with a simple text-based protocol.
- TTL per key (based on BTree index)
- Dump and Restore from disk
- Thread-safety
- Commands:
set <key> <value> <ttl>
get <key>
del <key>
stats
quit
For fun and profit :-)
You need just start a server and connect to it from nc
, like this:
nc 127.0.0.1 4000
Set value:
set mykey myvalue 300s
OK
Get value:
get mykey
myvalue
Delete value:
del mykey
OK
Show stats:
stats
Hit: 865, Miss: 24, Size: 853
- Tests and benchmarks
- Metrics
- Dump and restore without reflection
- Build in GitHub Actions