summaryrefslogtreecommitdiffstats
path: root/src/commands/script-exists.json
blob: d8c47e48245251fe55041d0f0b9843d0e93c2d56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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
                    }
                ]
            }
        }
    }
}