Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: bc0398fc92
Fetching contributors…

Cannot retrieve contributors at this time

47 lines (46 sloc) 1.194 kb
\title{Remove elements from a list.}
\description{Remove the fist \code{count} occurences of the given value
from a list corresponding to the specified key.
redisLRem(key, count, value)
\item{key}{The desired key corresponding to a list.
The maximum number of occurences to remove.
Remove elements matching this value from the list.
Remove the first \code{count} occurrences of the \code{value} element from the
list. If \code{count} is zero all the elements are removed. If count is
negative elements are removed from tail to head, instead of the default removal
behavior from head to tail. So for example \code{redisLRem} with count -2 and
value "hello" applied to the list (a,b,c,hello,x,hello,hello) will
yield the list (a,b,c,hello,x). The number of removed elements is returned as
an integer upon success. Note that
non-existing keys are considered as empty lists.
The number of occurrences removed.
B. W. Lewis
Jump to Line
Something went wrong with that request. Please try again.