Sitelet https://github.com/phpredis/phpredis/issues/1961
Skip to content

XTRIM mystream MINID #1961

Description

@thomas-0816

Expected behaviour

It would be great to support xtrim by minimum id.

https://redis.io/commands/xtrim describes:

XTRIM mystream MAXLEN 1000
and
XTRIM mystream MINID 649085820

Actual behaviour

From the readme I get:

/* Trim to exactly 100 messages */
$obj_redis->xTrim('mystream', 100);
/* Let Redis approximate the trimming */
$obj_redis->xTrim('mystream', 100, true);

But I could not find an option to trim by minimum id.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions