LINSERT key BEFORE|AFTER pivot value
value in the list stored at
key either before or after the reference
key does not exist, it is considered an empty list and no operation is
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
pivot was not found.
redis> RPUSH mylist “World”
redis> LINSERT mylist BEFORE “World” “There”
redis> LRANGE mylist 0 -1
1) "Hello" 2) "There" 3) "World"