kevy

XTRIM

Trim a stream by length or minimum ID.

语法XTRIM key MAXLEN|MINID [=|~] threshold
分组stream
参数个数-4
起始版本1.0.0
标志write
复杂度O(R log N + N*F) for R evicted entries
Redis 兼容性differs: '~' is accepted but trimming is always exact, LIMIT is not parsed, and trailing tokens after the threshold are silently ignored instead of erroring

← 全部命令