Skip to content

Read buffer instead of string with xreadgroup #1980

@Strauteka

Description

@Strauteka

With xadd I can add string | Buffer | number; But acquire value with xreadgroup returns string(corrupted).
Is there is an equivalent method to receive buffer in stream group read?
Cant find one.

redis.xreadgroup(
            'GROUP',
            groupName,
            consumerName,
            'COUNT',
            count,
            'STREAMS',
            channel,
            id || '>'
        );

closest method found

   xreadBuffer(...args: [
        streamsToken: "STREAMS",
        ...args: RedisValue[],
        callback: Callback<[
            key: Buffer,
            items: [id: Buffer, fields: Buffer[]][]
        ][] | null>
    ]): Result<[
        key: Buffer,
        items: [id: Buffer, fields: Buffer[]][]
    ][] | null, Context>;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions