This repository was archived by the owner on Mar 9, 2026. It is now read-only.
docs for new MINID trim strategy#1488
Merged
oranagra merged 3 commits intoredis:masterfrom Jan 8, 2021
Merged
Conversation
oranagra
reviewed
Jan 6, 2021
Member
oranagra
left a comment
There was a problem hiding this comment.
sorry for hogging this PR to discuss the new style guides and evaluate their pros and cons.
commands.json
Outdated
Comment on lines
+4701
to
+4702
| "name": "threshold", | ||
| "type": "string" |
Member
There was a problem hiding this comment.
maybe instead of
XTRIM key (MAXLEN|MINID) [=|~] threshold
we want:
XTRIM key ([MAXLEN [=|~] length] | [MINID [=|~] id])
i.e. this way we can name the length as such, and keep it an integer.
Member
There was a problem hiding this comment.
Regrettably, our syntax has implied parenthesis and no way to explicitly state that. Yet another point for future improvement.
Member
There was a problem hiding this comment.
@itamarhaber why can't we do this:
XTRIM key [MAXLEN [=|~] length] | [MINID [=|~] id]
and then state somewhere that you must provide at least, and only one.
i'm not certain it's better than
XTRIM key (MAXLEN|MINID) [=|~] threshold
just suggesting
commands/xtrim.md
Outdated
Comment on lines
+47
to
+48
| This option is only valid with the `~` modifier and its default is (100 * the number | ||
| of entries per macro node). |
Member
There was a problem hiding this comment.
referring to "macro node" maybe we wanna refer to stream-node-max-entries?
Member
oranagra
approved these changes
Jan 7, 2021
oranagra
reviewed
Jan 7, 2021
oranagra
approved these changes
Jan 7, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


No description provided.