summaryrefslogtreecommitdiffstats
path: root/src/commands/cluster-keyslot.json
blob: e51b643b9c39f5d2c38bd5d91d40c0000c26efbd (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
{
    "KEYSLOT": {
        "summary": "Returns the hash slot for a key.",
        "complexity": "O(N) where N is the number of bytes in the key",
        "group": "cluster",
        "since": "3.0.0",
        "arity": 3,
        "container": "CLUSTER",
        "function": "clusterCommand",
        "command_flags": [
            "STALE"
        ],
        "arguments": [
            {
                "name": "key",
                "type": "string"
            }
        ],
        "reply_schema": {
            "description": "The hash slot number for the specified key",
            "type": "integer",
            "minimum": 0
        }
    }
}