summaryrefslogtreecommitdiffstats
path: root/src/commands/psubscribe.json
blob: 707fdf45cfb8ef368ae1e355194bfdb7d11cf9b6 (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
{
    "PSUBSCRIBE": {
        "summary": "Listen for messages published to channels matching the given patterns",
        "complexity": "O(N) where N is the number of patterns the client is already subscribed to.",
        "group": "pubsub",
        "since": "2.0.0",
        "arity": -2,
        "function": "psubscribeCommand",
        "command_flags": [
            "PUBSUB",
            "NOSCRIPT",
            "LOADING",
            "STALE",
            "SENTINEL"
        ],
        "arguments": [
            {
                "name": "pattern",
                "type": "block",
                "multiple": true,
                "arguments": [
                    {
                        "name": "pattern",
                        "type": "pattern"
                    }
                ]
            }
        ]
    }
}