XIDMPRECORD
Since 1.1.1Streams
Syntax
XIDMPRECORDRecords that producer producer-id's idempotent ID idempotent-id produced the entry id, already in the stream at key, as an XADD ... IDMP would have (Redis 8.10). A later XADD with that producer and idempotent ID then adds nothing and replies with id. Recording the same pair again is fine.
Reply
OK.ERR No such message in streamif there is no entryid;ERR no such keyif the stream does not exist.
Examples
> XADD r 1-0 x 1
"1-0"
> XIDMPRECORD r p1 req-9 1-0
OK
> XADD r IDMP p1 req-9 * x 2
"1-0"
> XLEN r
(integer) 1