XSETID
Sets the stream's last-generated ID metadata.
Streams · Example verified
Syntax covered here
XSETID key last-idThe case applies a later explicit ID to an existing stream; it does not add an entry.
Tested example & replies
Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.
# connection: default
> XADD events 1-0 event created
"1-0"
# connection: default
> XSETID events 3-0
"OK"