Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Klefki

Klefki is a small append-only key-value store that communicates over TCP/IP.

Why

This project was built mainly to:

  • Get reps in with Golang
  • Deepen knowledge of data storage internals

Overview

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]

Setup and Usage

To use Klefki, start the main file and connect over TCP

go run main.go

ncat localhost 8080

Then 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.

About

Simple keyval study

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages