Redis commonly used methods

blPop, brPop block reading and deleting the first / last element
bRPopLPush pops a value from the list and pushes it to another list
rPopLPush pops the last element in the list. And push it to another list
lRange, LGetRange get some column elements in the list lIndex, lGet get elements
from its index
lset set elements by index
lRem, lRemove delete elements by index
lInsert insert one before or after an element in the list Elements
lLen, lSize Get the length / size in the
list lPop Pop the first element
in the list lPush Add one or more elements
before the list rpop Pop the last element of the list rpush Add one or more elements
at the end of the list
lPushx Only in the list Add an element
rpushx before the list when it exists. Only add an element at the end of the list when the list exists
lTrim listTrim build the list to the specified range

Guess you like

Origin www.cnblogs.com/kevin-yang123/p/12725392.html