List
LINSERT
Insert an element before or after another element in a list
Arguments
key
str
requiredThe key of the list.
direction
"BEFORE" | "AFTER"
requiredWhether to insert the element before or after pivot.
pivot
Any
requiredThe element to insert before or after.
value
Any
requiredThe element to insert.
Response
The list length after insertion, 0
when the list doesn’t exist or -1
when pivot was not found.