-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
XTRIM mystream MINID #1961
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I have the same problem! |
you can use rawCommand method $redis = redis(config('redis'));
$res = $redis->info('server');
if (version_compare($res['redis_version'], '6.2.0', '>')) {
$res = $redis->rawCommand('xtrim', 'mq', 'minid', '1641526331345-2');
var_dump($res);
} |
michael-grunder
added a commit
that referenced
this issue
Oct 6, 2022
michael-grunder
added a commit
that referenced
this issue
Oct 8, 2022
michael-grunder
added a commit
that referenced
this issue
Oct 8, 2022
michael-grunder
added a commit
that referenced
this issue
Oct 8, 2022
Thank You! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behaviour
It would be great to support xtrim by minimum id.
https://redis.io/commands/xtrim describes:
Actual behaviour
From the readme I get:
But I could not find an option to trim by minimum id.
The text was updated successfully, but these errors were encountered: