LedisDB
Ledisdb is a high performance NoSQL like Redis based on LevelDB written by Golang. It supports some advanced data structure like kv, list, hash, zset and bitmap, and may be alternative for Redis.
Features
- Rich advanced data structure: KV, List, Hash, ZSet, Bitmap.
- Uses leveldb to store lots of data, over the memory limit.
- Supports expiration and ttl.
- Redis clients, like redis-cli, are supported directly.
- Multi client API supports, including Golang, Python, Lua(Openresty).
- Easy to embed in Golang application.
- Replication to guarantee data safe.
- Supplies tools to load, dump, repair database.
Example
./ledis-server -config=/etc/ledis.json
//another shell
ledis-cli -p 6380
ledis 127.0.0.1:6380> set a 1
OK
ledis 127.0.0.1:6380> get a
"1"
Lib Example
import "github.com/siddontang/ledisdb/ledis"
l, _ := ledis.Open(cfg)
db, _ := l.Select(0)
db.Set(key, value)
db.Get(key)
Links
Feedback
Gmail: siddontang@gmail.com