summaryrefslogtreecommitdiffstats
path: root/src/commands/script-exists.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/script-exists.json
parentInitial commit. (diff)
downloadredis-317c0644ccf108aa23ef3fd8358bd66c2840bfc0.tar.xz
redis-317c0644ccf108aa23ef3fd8358bd66c2840bfc0.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/script-exists.json')
-rw-r--r--src/commands/script-exists.json44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/commands/script-exists.json b/src/commands/script-exists.json
new file mode 100644
index 0000000..d8c47e4
--- /dev/null
+++ b/src/commands/script-exists.json
@@ -0,0 +1,44 @@
+{
+ "EXISTS": {
+ "summary": "Determines whether server-side Lua scripts exist in the script cache.",
+ "complexity": "O(N) with N being the number of scripts to check (so checking a single script is an O(1) operation).",
+ "group": "scripting",
+ "since": "2.6.0",
+ "arity": -3,
+ "container": "SCRIPT",
+ "function": "scriptCommand",
+ "command_flags": [
+ "NOSCRIPT"
+ ],
+ "acl_categories": [
+ "SCRIPTING"
+ ],
+ "command_tips": [
+ "REQUEST_POLICY:ALL_SHARDS",
+ "RESPONSE_POLICY:AGG_LOGICAL_AND"
+ ],
+ "arguments": [
+ {
+ "name": "sha1",
+ "type": "string",
+ "multiple": true
+ }
+ ],
+ "reply_schema": {
+ "description": "An array of integers that correspond to the specified SHA1 digest arguments.",
+ "type": "array",
+ "items": {
+ "oneOf": [
+ {
+ "description": "sha1 hash exists in script cache",
+ "const": 1
+ },
+ {
+ "description": "sha1 hash does not exist in script cache",
+ "const": 0
+ }
+ ]
+ }
+ }
+ }
+}