Redis-3.List&hash&set&zset操作簡單介紹

List列表 List:有序,可以重複的。可以用來做隊列 常用命令 lpush key value:從列表左邊插入一個元素 rpush key value:從列表右邊插入一個元素 lpop key:從左邊彈出第一個元素(移除並獲取) rpop key:從右邊彈出第一個元素(移除並獲取) lrange key startIndex endIndex:從左邊開始列出元素,範圍是下標startIndex
相關文章
相關標籤/搜索