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 --- .../src/commands/function-restore.json | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 examples/redis-unstable/src/commands/function-restore.json (limited to 'examples/redis-unstable/src/commands/function-restore.json') diff --git a/examples/redis-unstable/src/commands/function-restore.json b/examples/redis-unstable/src/commands/function-restore.json new file mode 100644 index 0000000..0c37004 --- /dev/null +++ b/examples/redis-unstable/src/commands/function-restore.json @@ -0,0 +1,54 @@ +{ + "RESTORE": { + "summary": "Restores all libraries from a payload.", + "complexity": "O(N) where N is the number of functions on the payload", + "group": "scripting", + "since": "7.0.0", + "arity": -3, + "container": "FUNCTION", + "function": "functionRestoreCommand", + "command_flags": [ + "NOSCRIPT", + "WRITE", + "DENYOOM" + ], + "acl_categories": [ + "SCRIPTING" + ], + "command_tips": [ + "REQUEST_POLICY:ALL_SHARDS", + "RESPONSE_POLICY:ALL_SUCCEEDED" + ], + "arguments": [ + { + "name": "serialized-value", + "type": "string" + }, + { + "name": "policy", + "type": "oneof", + "optional": true, + "arguments": [ + { + "name": "flush", + "type": "pure-token", + "token": "FLUSH" + }, + { + "name": "append", + "type": "pure-token", + "token": "APPEND" + }, + { + "name": "replace", + "type": "pure-token", + "token": "REPLACE" + } + ] + } + ], + "reply_schema": { + "const": "OK" + } + } +} -- cgit v1.2.3