module Redis::Commands::Streams
def xrange(key, start = '-', range_end = '+', count: nil)
-
(Array
- the ids and entries pairs>)
Parameters:
-
count
(Integer
) -- the number of entries as limit -
end
(String
) -- last entry id of range, default value is `+` -
start
(String
) -- first entry id of range, default value is `-` -
key
(String
) -- the stream key
Other tags:
- Example: With count options -
Example: With a specific start and end -
Example: With a specific start -
Example: Without options -
def xrange(key, start = '-', range_end = '+', count: nil) args = [:xrange, key, start, range_end] args.concat(['COUNT', count]) if count send_command(args, &HashifyStreamEntries) end