Skip to content

Provide a convenience method to support reading of last message from stream #2861

@tishun

Description

@tishun

Feature Request

A new way to read from the last element of the stream was introduced to XREAD with redis/redis#7388

We might want to add a convenience method to the XReadArgs.StreamOffset class.

Is your feature request related to a problem? Please describe

The feature could still be used if the + sign is used as offset in the XReadArgs.StreamOffset constructor.

Having a dedicated method would make it easier for the consumers of the driver.

Describe the solution you'd like

Add a new public static method that creates a StreamOffset with the hardcoded offset sign.

Describe alternatives you've considered

None.

Teachability, Documentation, Adoption, Migration Strategy

Similar to how the existing .latest(K name) and .lastConsumed(K name) methods were used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: good-first-issueAn issue that can only be worked on by brand new contributors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions