XREVRANGE is similar to XRANGE, but in reverse order. The stream items in descending chronological order. Using the same example as XRANGE, when fetching items in reverse order there are some differences when paginating. The first set of records can be fetched using: XRANGE(key, NewTimeXID(endOfFebr
(key string, end, start XID, count int64)
| 742 | // XRANGE(key, lastFetchedItemID.Prev(), NewTimeXID(beginningOfFebruary).First(), 1000) |
| 743 | // Works similar to https://redis.io/commands/xrevrange |
| 744 | func (c Client) XREVRANGE(key string, end, start XID, count int64) (streamItems []StreamItem, err error) { |
| 745 | return c.xRange(key, start, end, count, false) |
| 746 | } |
| 747 | |
| 748 | func (c Client) XTRIM(key string, newCount int64) (deletedCount int64, err error) { |
| 749 | hasMoreResults := true |