kevy4.0

LSET

Set the list element at the given index.

LSET key index element
Group
List
Since
1.0.0
Arity
exactly 4
Flags
write

Complexity

O(1) — a direct index write (Redis is O(N) for a mid-list index)

Complexity and compatibility are read out of kevy's implementation, not copied from Redis's reference. Several genuinely differ.

Redis compatibility

Compatible

Behaves as Redis does.

See also

BLPOPBRPOPBRPOPLPUSHLINDEXLLENLMOVELPOPLPOSLPUSHLRANGELREMLTRIMRPOPRPOPLPUSHRPUSH

← All commands