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: about 1 year ago
JSON representation
A Go key/value store service based on BoltDB.
- Host: GitHub
- URL: https://github.com/helinwang/kv
- Owner: helinwang
- License: mit
- Created: 2017-07-27T06:32:36.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-27T19:49:28.000Z (almost 9 years ago)
- Last Synced: 2025-02-17T06:28:43.845Z (over 1 year ago)
- Topics: boltdb, go, key-value, kvstore
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kv
[](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).