WAIT

Requests a replication acknowledgement count for preceding writes.

Server & administration · Example verified

Syntax covered here

WAIT numreplicas timeout-ms

The only case requests zero replicas after SET and returns zero; it does not demonstrate acknowledgement by any replica.

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
> SET sample value
"OK"
# connection: default
> WAIT 0 100
0