Method: Redis::Commands::Streams#xinfo
- Defined in:
- lib/redis/commands/streams.rb
#xinfo(subcommand, key, group = nil) ⇒ Hash+
Returns the stream information each subcommand.
22 23 24 25 26 27 28 29 30 |
# File 'lib/redis/commands/streams.rb', line 22 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 |