summaryrefslogtreecommitdiffstats
path: root/src/commands/readonly.json
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/readonly.json')
-rw-r--r--src/commands/readonly.json21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/commands/readonly.json b/src/commands/readonly.json
new file mode 100644
index 0000000..253573c
--- /dev/null
+++ b/src/commands/readonly.json
@@ -0,0 +1,21 @@
+{
+ "READONLY": {
+ "summary": "Enables read-only queries for a connection to a Redis Cluster replica node.",
+ "complexity": "O(1)",
+ "group": "cluster",
+ "since": "3.0.0",
+ "arity": 1,
+ "function": "readonlyCommand",
+ "command_flags": [
+ "FAST",
+ "LOADING",
+ "STALE"
+ ],
+ "acl_categories": [
+ "CONNECTION"
+ ],
+ "reply_schema": {
+ "const": "OK"
+ }
+ }
+}