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>statsquit
For fun and profit :-)
You need just start a server and connect to it from nc, like this:
nc 127.0.0.1 4000Set value:
set mykey myvalue 300s
OKGet value:
get mykey
myvalueDelete value:
del mykey
OKShow stats:
stats
Hit: 865, Miss: 24, Size: 853- Tests and benchmarks
- Metrics
- Dump and restore without reflection
- Build in GitHub Actions