kevy

XTRIM

Trim a stream by length or minimum ID.

SyntaxXTRIM key MAXLEN|MINID [=|~] threshold
Groupstream
Arity-4
Since1.0.0
Flagswrite
ComplexityO(R log N + N*F) for R evicted entries
Redis compatibilitydiffers: '~' is accepted but trimming is always exact, LIMIT is not parsed, and trailing tokens after the threshold are silently ignored instead of erroring

← All commands