kevy4.0

LREM

Remove elements equal to the given value from a list.

LREM key count element
Group
List
Since
1.0.0
Arity
exactly 4
Flags
write

Complexity

O(N*R) worst case — the scan is O(N) but each removal shifts up to half the deque (Redis is O(N+R))

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

BLPOPBRPOPBRPOPLPUSHLINDEXLLENLMOVELPOPLPOSLPUSHLRANGELSETLTRIMRPOPRPOPLPUSHRPUSH

← All commands