summaryrefslogtreecommitdiffstats
path: root/src/commands/psubscribe.json
blob: cab5d14ef0e77299f9c03c8406e94d41ab814df7 (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
{
    "PSUBSCRIBE": {
        "summary": "Listens for messages published to channels that match one or more patterns.",
        "complexity": "O(N) where N is the number of patterns to subscribe to.",
        "group": "pubsub",
        "since": "2.0.0",
        "arity": -2,
        "function": "psubscribeCommand",
        "command_flags": [
            "PUBSUB",
            "NOSCRIPT",
            "LOADING",
            "STALE",
            "SENTINEL"
        ],
        "arguments": [
            {
                "name": "pattern",
                "type": "pattern",
                "multiple": true
            }
        ]
    }
}