XTRIMTrim 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 |