Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 1a7d0e5491
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (15 sloc) 0.503 kb

Inserts value in the list stored at key either before or after the reference value pivot.

When key does not exist, it is considered an empty list and no operation is performed.

An error is returned when key exists but does not hold a list value.


@integer-reply: the length of the list after the insert operation, or -1 when the value pivot was not found.


RPUSH mylist "Hello"
RPUSH mylist "World"
LINSERT mylist BEFORE "World" "There"
LRANGE mylist 0 -1
Jump to Line
Something went wrong with that request. Please try again.