mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
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.
36 lines
993 B
JSON
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"
|
|
}
|
|
]
|
|
}
|
|
}
|