A miniature implementation of Redis.
Miniaturedis implements a tiny Redis server based on the the RESP protocol specification, i.e. you can use redis-cli
or any other Redis client implementation to connect to it and issue commands:
# Start miniaturedis in the background
$ ./miniaturedis &
# Start a Redis client
$ redis-cli
127.0.0.1:6379> GET some-key
(nil)
127.0.0.1:6379> SET some-key some-value
OK
127.0.0.1:6379> GET some-key
"some-value"
As the name suggests, Miniaturedis currently only supports a tiny subset of Redis commands:
There is also no snapshot behaviour, i.e. nothing is persisted.
Assuming you have Go installed:
go build -o . ./...
./miniaturedis