Method: Redis::Commands::Streams#xgroup
- Defined in:
- lib/redis/commands/streams.rb
#xgroup(subcommand, key, group, id_or_consumer = nil, mkstream: false) ⇒ String, Integer
Manages the consumer group of the stream.
221 222 223 224 |
# File 'lib/redis/commands/streams.rb', line 221 def xgroup(subcommand, key, group, id_or_consumer = nil, mkstream: false) args = [:xgroup, subcommand, key, group, id_or_consumer, (mkstream ? 'MKSTREAM' : nil)].compact send_command(args) end |