module Redis::Commands::Streams

def xrevrange(key, range_end = '+', start = '-', count: nil)

Returns:
  • (Array>) - the ids and entries pairs

Parameters:
  • start (String) -- last entry id of range, default value is `-`
  • end (String) -- first entry id of range, default value is `+`
  • key (String) -- the stream key

Other tags:
    Example: With count options -
    Example: With a specific end and start -
    Example: With a specific end -
    Example: Without options -
def xrevrange(key, range_end = '+', start = '-', count: nil)
  args = [:xrevrange, key, range_end, start]
  args.concat(['COUNT', count]) if count
  send_command(args, &HashifyStreamEntries)
end