Skip to content

tidwall/kvnode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kvnode

Minimal Key/Value store with basic Redis support.

  • Redis API
  • LevelDB disk-based storage
  • Raft support with Uhaha commands
  • Compatible with existing Redis clients

Commands:

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

License

kvnode source code is available under the MIT License.

About

key value server. redis api, leveldb storage, raft support

Resources

License

Stars

Watchers

Forks

Packages

No packages published