summaryrefslogtreecommitdiffstats
path: root/src/commands/client-tracking.json
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:40:54 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:40:54 +0000
commit317c0644ccf108aa23ef3fd8358bd66c2840bfc0 (patch)
treec417b3d25c86b775989cb5ac042f37611b626c8a /src/commands/client-tracking.json
parentInitial commit. (diff)
downloadredis-upstream/5%7.2.4.tar.xz
redis-upstream/5%7.2.4.zip
Adding upstream version 5:7.2.4.upstream/5%7.2.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/commands/client-tracking.json')
-rw-r--r--src/commands/client-tracking.json80
1 files changed, 80 insertions, 0 deletions
diff --git a/src/commands/client-tracking.json b/src/commands/client-tracking.json
new file mode 100644
index 0000000..28e84ec
--- /dev/null
+++ b/src/commands/client-tracking.json
@@ -0,0 +1,80 @@
+{
+ "TRACKING": {
+ "summary": "Controls server-assisted client-side caching for the connection.",
+ "complexity": "O(1). Some options may introduce additional complexity.",
+ "group": "connection",
+ "since": "6.0.0",
+ "arity": -3,
+ "container": "CLIENT",
+ "function": "clientCommand",
+ "command_flags": [
+ "NOSCRIPT",
+ "LOADING",
+ "STALE",
+ "SENTINEL"
+ ],
+ "acl_categories": [
+ "CONNECTION"
+ ],
+ "arguments": [
+ {
+ "name": "status",
+ "type": "oneof",
+ "arguments": [
+ {
+ "name": "on",
+ "type": "pure-token",
+ "token": "ON"
+ },
+ {
+ "name": "off",
+ "type": "pure-token",
+ "token": "OFF"
+ }
+ ]
+ },
+ {
+ "token": "REDIRECT",
+ "name": "client-id",
+ "type": "integer",
+ "optional": true
+ },
+ {
+ "token": "PREFIX",
+ "name": "prefix",
+ "type": "string",
+ "optional": true,
+ "multiple": true,
+ "multiple_token": true
+ },
+ {
+ "name": "BCAST",
+ "token": "BCAST",
+ "type": "pure-token",
+ "optional": true
+ },
+ {
+ "name": "OPTIN",
+ "token": "OPTIN",
+ "type": "pure-token",
+ "optional": true
+ },
+ {
+ "name": "OPTOUT",
+ "token": "OPTOUT",
+ "type": "pure-token",
+ "optional": true
+ },
+ {
+ "name": "NOLOOP",
+ "token": "NOLOOP",
+ "type": "pure-token",
+ "optional": true
+ }
+ ],
+ "reply_schema": {
+ "description": "if the client was successfully put into or taken out of tracking mode",
+ "const": "OK"
+ }
+ }
+}