Redis學習筆記(五)Redis數據存儲類型之list

list ​ (1)基本操作 ​ (2)添加數據 lpush key value1 value2…(從左邊壓入數據) ​ rpush key value1 value2…(從右邊壓入數據) ​ (3)獲取數據 lrange key start stop (以索引的方式讀取數據,索引以0位開始,stop即爲停止的位置) ​ lindex key index (直接以索引的方式讀取數據) ​ llen
相關文章
相關標籤/搜索