kevy4.0

LINDEX

Return the element at the given list index.

LINDEX key index
Group
List
Since
1.0.0
Arity
exactly 3
Flags
readonly

Complexity

O(1) — the list is a VecDeque, so an index is a direct offset (Redis's quicklist is O(N))

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

BLPOPBRPOPBRPOPLPUSHLLENLMOVELPOPLPOSLPUSHLRANGELREMLSETLTRIMRPOPRPOPLPUSHRPUSH

← All commands