LSET
Set the list element at the given index.
LSET key index element
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