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 --- examples/redis-unstable/src/commands/ping.json | 40 ++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 examples/redis-unstable/src/commands/ping.json (limited to 'examples/redis-unstable/src/commands/ping.json') diff --git a/examples/redis-unstable/src/commands/ping.json b/examples/redis-unstable/src/commands/ping.json new file mode 100644 index 0000000..b634c0b --- /dev/null +++ b/examples/redis-unstable/src/commands/ping.json @@ -0,0 +1,40 @@ +{ + "PING": { + "summary": "Returns the server's liveliness response.", + "complexity": "O(1)", + "group": "connection", + "since": "1.0.0", + "arity": -1, + "function": "pingCommand", + "command_flags": [ + "FAST", + "SENTINEL" + ], + "acl_categories": [ + "CONNECTION" + ], + "command_tips": [ + "REQUEST_POLICY:ALL_SHARDS", + "RESPONSE_POLICY:ALL_SUCCEEDED" + ], + "reply_schema": { + "anyOf": [ + { + "const": "PONG", + "description": "Default reply." + }, + { + "type": "string", + "description": "Relay of given `message`." + } + ] + }, + "arguments": [ + { + "name": "message", + "type": "string", + "optional": true + } + ] + } +} -- cgit v1.2.3