Method: Redis::Commands::Streams#xrevrange
- Defined in:
- lib/redis/commands/streams.rb
#xrevrange(key, range_end = '+', start = '-', count: nil) ⇒ Array<Array<String, Hash>>
Fetches entries of the stream in descending order.
158 159 160 161 162 |
# File 'lib/redis/commands/streams.rb', line 158 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 |