Skip to content
/ sdb Public

A Leveldb wrapper that allows easy store hash, zset data.

License

Notifications You must be signed in to change notification settings

ego008/sdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sdb

A Leveldb wrapper that allows easy store hash, zset data, base on goleveldb

Example

db, _ := sdb.Open("testdb", nil)

db.Hset("name", []byte("k"), []byte("v"))
db.Hget("name", []byte("k"))
db.Hdel("name", []byte("k"))
db.Hincr("name", []byte("k"), 3)
db.Hscan("name", nil, 10)
db.Hrscan("name", nil, 10)

db.Zset("name", []byte("k"), 1)
db.Zget("name", []byte("k"))
db.Zdel("name", []byte("k"))
db.Zincr("name", []byte("k"), 3)
db.Zscan("name", nil, 10)
db.Zrscan("name", nil, 10)

See more

Users

About

A Leveldb wrapper that allows easy store hash, zset data.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages