Skip to content

Redis stream commands (20/20 implemented)

XACK

Returns the number of messages that were successfully acknowledged by the consumer group member of a stream.

XADD

Appends a new message to a stream. Creates the key if it doesn't exist.

XAUTOCLAIM

Changes, or acquires, ownership of messages in a consumer group, as if the messages were delivered to as consumer group member.

XCLAIM

Changes, or acquires, ownership of a message in a consumer group, as if the message was delivered a consumer group member.

XDEL

Returns the number of messages after removing them from a stream.

XGROUP CREATE

Creates a consumer group.

XGROUP CREATECONSUMER

Creates a consumer in a consumer group.

XGROUP DELCONSUMER

Deletes a consumer from a consumer group.

XGROUP DESTROY

Destroys a consumer group.

XGROUP SETID

Sets the last-delivered ID of a consumer group.

XINFO CONSUMERS

Returns a list of the consumers in a consumer group.

XINFO GROUPS

Returns a list of the consumer groups of a stream.

XINFO STREAM

Returns information about a stream.

XLEN

Return the number of messages in a stream.

XPENDING

Returns the information and entries from a stream consumer group's pending entries list.

XRANGE

Returns the messages from a stream within a range of IDs.

XREAD

Returns messages from multiple streams with IDs greater than the ones requested. Blocks until a message is available otherwise.

XREADGROUP

Returns new or historical messages from a stream for a consumer in a group. Blocks until a message is available otherwise.

XREVRANGE

Returns the messages from a stream within a range of IDs in reverse order.

XTRIM

Deletes messages from the beginning of a stream.