Skip to content
masterclass Buddy

Redis · Command

XADD

XADD appends a field-value entry to a Redis stream. It can create the stream, generate an entry ID, and optionally trim old entries.

Last updated

Since
5.0.0

Syntax

XADD key [NOMKSTREAM] [KEEPREF | DELREF | ACKED] [IDMPAUTO producer-id | IDMP producer-id idempotent-id] [<MAXLEN | MINID> [= | ~] threshold [LIMIT count]] <* | id> field value [field value ...]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • XLEN
  • XRANGE
  • XREAD
  • XDEL
  • XTRIM
  • XCFGSET

Source: XADD. Checked 2026-11-03.