LINSERT key <BEFORE | AFTER> pivot element
@write,
@list,
@slow,
Inserts element 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.
| Redis Enterprise |
Redis Cloud |
Notes |
|---|---|---|
| ✅ Standard ✅ Active-Active |
✅ Standard ✅ Active-Active |
One of the following:
0 when the key doesn't exist.-1 when the pivot wasn't found.