Redis-like key-value store written in Go
- Implements Redis Serialization Protocol (RESP2)
- Simple key-value store
- Key expiration
- Subset of Redis commands
- Get the code & build the binary:
$ git clone https://github.com/pilosus/goradieschen.git && cd goradieschen && go build- Run the server:
$ ./goradieschen- Connect to the server using a Redis client:
$ redis-cli -h localhost -p 6380- Use the server with Redis-like commands:
localhost:6380> set k1 abc
OK
localhost:6380> get k1
"abc"
localhost:6380> expire k1 10
(integer) 1
localhost:6380> ttl k1
(integer) 7