Method: Redis::Commands::Streams#xread
- Defined in:
- lib/redis/commands/streams.rb
#xread(keys, ids, count: nil, block: nil) ⇒ Hash{String => Hash{String => Hash}}
Fetches entries from one or multiple streams. Optionally blocking.
193 194 195 196 197 198 |
# File 'lib/redis/commands/streams.rb', line 193 def xread(keys, ids, count: nil, block: nil) args = [:xread] args << 'COUNT' << count if count args << 'BLOCK' << block.to_i if block _xread(args, keys, ids, block) end |