module Redis::Commands::Streams
def xinfo(subcommand, key, group = nil)
-
(Array
- information of the consumers if subcommand is `consumers`) -
(Array
- information of the consumer groups if subcommand is `groups`) -
(Hash)
- information of the stream if subcommand is `stream`
Parameters:
-
group
(String
) -- the consumer group name, required if subcommand is `consumers` -
key
(String
) -- the stream key -
subcommand
(String
) -- e.g. `stream` `groups` `consumers`
Other tags:
- Example: consumers -
Example: groups -
Example: stream -
def xinfo(subcommand, key, group = nil) args = [:xinfo, subcommand, key, group].compact block = case subcommand.to_s.downcase when 'stream' then Hashify when 'groups', 'consumers' then proc { |r| r.map(&Hashify) } end send_command(args, &block) end