kevy

XTRIM

Trim a stream by length or minimum ID.

语法XTRIM key MAXLEN|MINID [=|~] threshold [LIMIT count]
分组stream
参数个数-4
起始版本1.0.0
标志write
复杂度O(R log N + N*F) for R evicted entries
Redis 兼容性differs: answers as valkey 9.1 does, an approximate '~' trim removing only whole nodes as XADD's does; Redis 8.10's KEEPREF / DELREF / ACKED options are not parsed

← 全部命令