一站式學習Redis從入門到高可用分佈式實踐-第二章redis API(二)

Redis的數據結構中可以實現列表,可以先思考一下列表的數據結構   API:rpush&lpush   rpush key value1 value2 ... valueN #可以插入多個元素   實例:   lpush listkey c b a #先插入一個c,在c的左邊插入b,再在b的左邊插入a rpush listkey c b a     API:linsert linsert key
相關文章
相關標籤/搜索