Files
redis/src/commands/wait.json
Binbin 85c31e0cff Allow running WAITAOF in scripts, remove NOSCRIPT flag (#12977)
In #11568 we removed the NOSCRIPT flag from commands, e.g. removing
NOSCRIPT flag from WAIT. Aiming to allow them in scripts and let them
implicitly behave in the non-blocking way.

This PR remove NOSCRIPT flag from WAITAOF just like WAIT (to be
symmetrical)).
And this PR also add BLOCKING flag for WAIT and WAITAOF.
2024-01-23 15:19:41 +02:00

36 lines
993 B
JSON

{
"WAIT": {
"summary": "Blocks until the asynchronous replication of all preceding write commands sent by the connection is completed.",
"complexity": "O(1)",
"group": "generic",
"since": "3.0.0",
"arity": 3,
"function": "waitCommand",
"command_flags": [
"BLOCKING"
],
"acl_categories": [
"CONNECTION"
],
"command_tips": [
"REQUEST_POLICY:ALL_SHARDS",
"RESPONSE_POLICY:AGG_MIN"
],
"reply_schema": {
"type": "integer",
"description": "The number of replicas reached by all the writes performed in the context of the current connection.",
"minimum": 0
},
"arguments": [
{
"name": "numreplicas",
"type": "integer"
},
{
"name": "timeout",
"type": "integer"
}
]
}
}