Skip to content

Instantly share code, notes, and snippets.

@roc26002w
Last active February 26, 2018 04:20
Show Gist options
  • Save roc26002w/25461aeedef7a004edd0f1945994f2ae to your computer and use it in GitHub Desktop.
Save roc26002w/25461aeedef7a004edd0f1945994f2ae to your computer and use it in GitHub Desktop.
## Install
* apt-get install redis-server
## redis-cli commend line
* 檢查連線
* PING
* 查詢紀錄的 Key
* `keys *`
* 查詢紀錄的 Key 數量
* `info keyspace`
* 刪除所有的 Key
* `flushall`
* 取得 Value
* `get {key name}`
## 參考網址
* https://redis.io/commands
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment