kvne is a simple key-value store written in Go. It is compatible with the redis-cli
client.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Go 1.20 or higher
Clone the repository:
git clone https://github.com/knvi/kvne.git
cd kvne
Build the project:
go build ./cmd/main.go
Run the project:
./main
set key value
- set the string value of a keyget key
- get the value of a keydel key [key ...]
- delete one or more keysping [message]
- ping the serverttl key
- get the time to live for a keyexpire key seconds
- set a key's time to live in secondsbgrewriteaof
- asynchronously rewrite the append-only file