Redis --- 基本使用方法
Written on October 16th, 2017 by Richard Lin
1. 設定單一Key對上單一值
SET
SET key apple
GET
GET key
return apple
2. 設定單一Key對上多個值
LPUSH
LPUSH key apple
LPUSH key lemon
LRANGE
LRANGE key start stop
LRANGE key 0 -1
//允許輸出重複元素
start
-1 為最後一個 element
-2 為倒數第二 and so on