Skip to content

skyoo2003/kvs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

KVS

A simple key-value store

CI Go Reference Go Report Card

Installation

$ git clone https://github.com/skyoo2003/kvs.git
$ cd kvs
$ go install ./cmd/kvs

CLI

The kvs binary exposes a small Cobra-based CLI.

$ kvs --help
$ kvs -v
$ kvs version
$ kvs --config config.yaml version

Use --config when you want to load a specific Viper-compatible config file.

Documentation

Import github.com/skyoo2003/kvs when you want a small in-memory store inside a Go program.

package main

import (
	"fmt"

	"github.com/skyoo2003/kvs"
)

func main() {
	store := kvs.NewStore()
	_ = store.Put("language", "go")

	value, _ := store.Get("language")
	fmt.Println(value)
}

Contributing

See CONTRIBUTING.md for the project contribution process.

The MIT License

Copyright (c) 2020-2021 Sung-Kyu Yoo

About

A key-value store as a distributed server or a Go module

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors