@valkey/valkey-glide
    Preparing search index...

    Interface StreamReadOptions

    Optional arguments for xread command.

    interface StreamReadOptions {
        block?: number;
        count?: number;
    }
    Index

    Properties

    Properties

    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?: number

    The maximal number of elements requested. Equivalent to COUNT in the Valkey API.