From 94b6f4697184faad9e420f7b1c43792391cd1801 Mon Sep 17 00:00:00 2001 From: holys Date: Mon, 4 Aug 2014 15:08:00 +0800 Subject: [PATCH] update index --- index.html | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index ddecf75..4a4587d 100644 --- a/index.html +++ b/index.html @@ -52,7 +52,7 @@

Various Backend

Various backend databases to choose:

-

LevelDB, goleveldb, LMDB, RocksDB & BoltDB.

+

LevelDB, goleveldb, LMDB, RocksDB or BoltDB.

Expiration & TTL

Supports expiration and ttl in all kinds of data structures.

@@ -85,7 +85,8 @@
-

Examples

+
+

CLI Example


 ./ledis-server -config=/etc/ledis.json
 
@@ -97,7 +98,21 @@ OK
 ledis 127.0.0.1:6380> get a
 "1"
         
+
+
+

RESTful Example

+

+//use curl
+curl http://127.0.0.1:11181/SET/hello/world
+→ {"SET":[true,"OK"]}
+
+curl http://127.0.0.1:11181/0/GET/hello?type=json
+→ {"GET":"world"}
+        
+
+ +

Lib Example


 import "github.com/siddontang/ledisdb/ledis"
@@ -109,6 +124,7 @@ db.Set(key, value)
 db.Get(key)
           
+