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)
           
+