Browse Source

Update 'README.md'

天问 8 months ago
parent
commit
1989ca3ad3
1 changed files with 44 additions and 1 deletions
  1. 44 1
      README.md

+ 44 - 1
README.md

@@ -1,3 +1,46 @@
 # dice
 
-redis go语言实现
+redis go语言实现
+
+## Usage
+
+运行:
+```
+# docker运行:
+# docker run dicedb/dice-server
+
+# 源码运行
+git clone https://github.com/dicedb/dice
+cd dice
+go run main.go
+
+```
+dice-server 监听 7379 端口,
+
+```
+dice
+
+SET mykey "Hello, World!"
+SET match:100:user:1 15
+
+GET mykey
+
+JSON.SET key path value
+
+SELECT $key, $value  FROM 'key_pattern'
+WHERE condition
+ORDER BY field [ASC | DESC] LIMIT n
+
+
+```
+
+python sdk:
+```
+pip install dicedb-cli
+
+```
+
+## Reference
+
+https://dicedb-docs.netlify.app/get-started/hello-world/
+