XTRIMTrim a stream by length or minimum ID.
| Syntax | XTRIM key MAXLEN|MINID [=|~] threshold |
| Group | stream |
| Arity | -4 |
| Since | 1.0.0 |
| Flags | write |
| Complexity | O(R log N + N*F) for R evicted entries |
| Redis compatibility | differs: '~' is accepted but trimming is always exact, LIMIT is not parsed, and trailing tokens after the threshold are silently ignored instead of erroring |