Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tidwall/kvnode
key value server. redis api, leveldb storage, raft support
https://github.com/tidwall/kvnode
Last synced: 3 months ago
JSON representation
key value server. redis api, leveldb storage, raft support
- Host: GitHub
- URL: https://github.com/tidwall/kvnode
- Owner: tidwall
- License: mit
- Created: 2017-01-31T13:57:08.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-09-18T18:13:12.000Z (about 4 years ago)
- Last Synced: 2024-06-18T20:16:54.525Z (5 months ago)
- Language: Go
- Size: 2.54 MB
- Stars: 80
- Watchers: 7
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kvnode
Minimal Key/Value store with basic Redis support.
- Redis API
- LevelDB disk-based storage
- Raft support with [Uhaha](https://github.com/tidwall/uhaha) commands
- Compatible with existing Redis clientsCommands:
```
SET key value
GET key
DEL key [key ...]
PDEL pattern
KEYS pattern [PIVOT prefix] [LIMIT count] [DESC] [WITHVALUES] [EXCL]
MSET key value [key value ...]
MGET key [key ...]
```## Key scanning
The `KEYS` command returns keys and values, ordered by keys.
The `PIVOT` keyword allows for efficient paging.
For example:
```
redis> MSET key1 1 key2 2 key3 3 key4 4
OK
redis> KEYS * LIMIT 2
1) "key1"
2) "key2"
redis> KEYS * PIVOT key2 LIMIT 2
1) "key3"
2) "key4"
```The `PDEL` commands will delete all items matching the specified pattern.
## Contact
Josh Baker [@tidwall](http://twitter.com/tidwall)## License
kvnode source code is available under the MIT [License](/LICENSE).