Home / node / Commands / interfaces / StreamReadOptions @valkey/valkey-glide
@valkey/valkey-glide / Commands / StreamReadOptions
Interface: StreamReadOptions
Optional arguments for xread command.
Properties
block?
optional
block:number
If set, the read request will block for the set amount of milliseconds or
until the server has the required number of entries. A value of 0
will block indefinitely.
Equivalent to BLOCK
in the Valkey API.
count?
optional
count:number
The maximal number of elements requested.
Equivalent to COUNT
in the Valkey API.