From 5d8dfe892a2ea89f706ee140c3bdcfd89fe03fda Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Wed, 21 Jan 2026 22:40:55 +0100 Subject: Add Redis source code for testing --- .../redis-unstable/src/commands/replicaof.json | 59 ++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 examples/redis-unstable/src/commands/replicaof.json (limited to 'examples/redis-unstable/src/commands/replicaof.json') diff --git a/examples/redis-unstable/src/commands/replicaof.json b/examples/redis-unstable/src/commands/replicaof.json new file mode 100644 index 0000000..95e5cb4 --- /dev/null +++ b/examples/redis-unstable/src/commands/replicaof.json @@ -0,0 +1,59 @@ +{ + "REPLICAOF": { + "summary": "Configures a server as replica of another, or promotes it to a master.", + "complexity": "O(1)", + "group": "server", + "since": "5.0.0", + "arity": 3, + "function": "replicaofCommand", + "command_flags": [ + "NO_ASYNC_LOADING", + "ADMIN", + "NOSCRIPT", + "STALE" + ], + "arguments": [ + { + "name": "args", + "type": "oneof", + "arguments": [ + { + "name": "host-port", + "type": "block", + "arguments": [ + { + "name": "host", + "type": "string" + }, + { + "name": "port", + "type": "integer" + } + ] + }, + { + "name": "no-one", + "type": "block", + "arguments": [ + { + "name": "no", + "type": "pure-token", + "token": "NO" + }, + { + "name": "one", + "type": "pure-token", + "token": "ONE" + } + ] + } + ] + } + ], + "reply_schema": { + "description": "replicaOf status", + "type": "string", + "pattern": "OK*" + } + } +} -- cgit v1.2.3