This project was built mainly to:
- Get reps in with Golang
- Deepen knowledge of data storage internals
Klefki uses a simple text-based command format:
SET name Klefki
> [OK]
GET name
> [OK] Klefki
KEYS
> [OK] name
DEL name
> [OK]
GET name
> [ERR] Key not found
KEYS
> [OK]To use Klefki, start the main file and connect over TCP
go run main.go
ncat localhost 8080Then run any of the following commands
SET <key> <val> <ttl?=300>
Stores a value under the given key. An optional TTL can be provided; if omitted, it defaults to 300 seconds.
GET <key>
Returns the value stored for the given key.
DEL <key>
Deletes the key and its value from the store.
KEYS
Lists all keys currently stored.
