update read me

This commit is contained in:
siddontang 2014-06-12 15:56:04 +08:00
parent 8592324a2f
commit a7f91cfdc9
2 changed files with 55 additions and 4 deletions

View File

@ -33,14 +33,40 @@ Ledisdb is a high performance nosql like redis based on leveldb written by go. I
./ledis-server -config=/etc/ledis.json ./ledis-server -config=/etc/ledis.json
//another shell
redis-cli -p 6380
redis 127.0.0.1:6380> set a 1
OK
redis 127.0.0.1:6380> get a
"1"
## Lib
import "github.com/siddontang/ledisdb/ledis"
l, _ := ledis.OpenWithConfig(cfg)
db, _ := l.Select(0)
db.Set(key, value)
db.Get(key)
## Replication
set slaveof in config or dynamiclly
redis-cli -p 6381
redis 127.0.0.1:6381> slaveof 127.0.0.1:6380
OK
## Benchmark ## Benchmark
See benchmark.md for more. See benchmark.md for more.
## Todo ## Todo
+ Expire + TTL
+ Replication
+ Admin + Admin
## Feedback ## Feedback

View File

@ -40,14 +40,39 @@ ledisdb是一个用go实现的类似redis的高性能nosql数据库底层基
./ledis-server -config=/etc/ledis.json ./ledis-server -config=/etc/ledis.json
//another shell
redis-cli -p 6380
redis 127.0.0.1:6380> set a 1
OK
redis 127.0.0.1:6380> get a
"1"
## 嵌入库
import "github.com/siddontang/ledisdb/ledis"
l, _ := ledis.OpenWithConfig(cfg)
db, _ := l.Select(0)
db.Set(key, value)
db.Get(key)
## Benchmark ## Benchmark
可以通过查看benchmark.md获取最新的性能测试结果 可以通过查看benchmark.md获取最新的性能测试结果
## Replication
通过配置或者运行时输入slaveof开启slave的replication功能
redis-cli -p 6381
redis 127.0.0.1:6381> slaveof 127.0.0.1:6380
OK
## Todo ## Todo
+ Expire + TTL
+ Replication
+ Admin + Admin
## 联系我 ## 联系我