Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/helinwang/kv

A Go key/value store service based on BoltDB.
https://github.com/helinwang/kv

boltdb go key-value kvstore

Last synced: 8 days ago
JSON representation

A Go key/value store service based on BoltDB.

Awesome Lists containing this project

README

        

# kv
[![Build Status](https://travis-ci.org/helinwang/kv.svg?branch=master)](https://travis-ci.org/helinwang/kv)

A Go key/value store service based on [BoltDB](https://github.com/boltdb/bolt), access BoltDB from multiple processes.

## Integrate with Go

Please see [here](./example_test.go).

## CLI example

```bash
go get github.com/helinwang/kv/cmd/kvctl
go get github.com/helinwang/kv/cmd/kv

# Start kv service:
kv -path db.bin

# Test (open another terminal)
kvctl put :8080 hello hi
kvctl get :8080 hello

# Output: hi
```

## Graceful Shutdown

Supported in the CLI. Please see [here](./cmd/kv/main.go).