forked from mirror/ledisdb
1 line
2.6 KiB
JSON
1 line
2.6 KiB
JSON
{"name":"Ledisdb","tagline":"a high performance NoSQL powered by golang","body":"# LedisDB\r\n\r\nLedisdb is a high performance NoSQL like Redis based on LevelDB written by go. It supports some advanced data structure like kv, list, hash and zset, and may be alternative for Redis.\r\n\r\n## Features\r\n\r\n+ Rich advanced data structure: KV, List, Hash, ZSet, Bit.\r\n+ Uses leveldb to store lots of data, over the memory limit. \r\n+ Supports expiration and ttl.\r\n+ Redis clients, like redis-cli, are supported directly.\r\n+ Multi client API supports, including Golang, Python, Lua(Openresty). \r\n+ Easily to embed in Golang application. \r\n+ Replication to guarantee data safe.\r\n+ Supplies tools to load, dump, repair database. \r\n\r\n## Build and Install\r\n\r\n+ Create a workspace and checkout ledisdb source\r\n\r\n mkdir $WORKSPACE\r\n cd $WORKSPACE\r\n git clone git@github.com:siddontang/ledisdb.git src/github.com/siddontang/ledisdb\r\n\r\n cd src/github.com/siddontang/ledisdb\r\n\r\n+ Install leveldb and snappy, if you have installed, skip.\r\n\r\n I supply a simple shell to install leveldb and snappy, you can use: \r\n\r\n sh build_leveldb.sh\r\n\r\n It will default install leveldb at /usr/local/leveldb and snappy at /usr/local/snappy\r\n\r\n+ Change LEVELDB_DIR and SNAPPY_DIR to real install path in dev.sh.\r\n\r\n+ Then:\r\n\r\n . ./bootstap.sh \r\n . ./dev.sh\r\n\r\n go install ./...\r\n\r\n## Run\r\n\r\n ./ledis-server -config=/etc/ledis.json\r\n\r\n //another shell\r\n ledis-cli -p 6380\r\n \r\n ledis 127.0.0.1:6380> set a 1\r\n OK\r\n ledis 127.0.0.1:6380> get a\r\n \"1\"\r\n\r\n## Lib\r\n \r\n import \"github.com/siddontang/ledisdb/ledis\"\r\n l, _ := ledis.Open(cfg)\r\n db, _ := l.Select(0)\r\n\r\n db.Set(key, value)\r\n\r\n db.Get(key)\r\n\r\n\r\n## Replication\r\n\r\nset slaveof in config or dynamiclly\r\n\r\n ledis-cli -p 6381 \r\n\r\n ledis 127.0.0.1:6381> slaveof 127.0.0.1:6380\r\n OK\r\n\r\n## Benchmark\r\n\r\nSee benchmark.md for more.\r\n\r\n## Todo\r\n\r\n+ Admin\r\n\r\n## GoDoc\r\n\r\n[![GoDoc](https://godoc.org/github.com/siddontang/ledisdb?status.png)](https://godoc.org/github.com/siddontang/ledisdb)\r\n\r\n## Commands\r\n\r\nSome server commands explaintions are [here](https://github.com/siddontang/ledisdb/wiki/Commands), others will add continuate.\r\n\r\n## Thanks\r\n\r\nGmail: cenqichao@gmail.com\r\n\r\nGmail: chendahui007@gmail.com\r\n\r\n## Feedback\r\n\r\nGmail: siddontang@gmail.com","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."} |