Async-Redis

 view release on metacpan or  search on metacpan

script/commands.json  view on Meta::CPAN

        ],
        "arity": -2,
        "key_specs": [
            {
                "begin_search": {
                    "type": "index",
                    "spec": {
                        "index": 1
                    }
                },
                "find_keys": {
                    "type": "range",
                    "spec": {
                        "lastkey": 0,
                        "keystep": 1,
                        "limit": 0
                    }
                },
                "RO": true,
                "access": true
            }
        ],
        "arguments": [
            {
                "name": "key",
                "type": "key",
                "display_text": "key",
                "key_spec_index": 0
            },
            {
                "name": "options",
                "type": "block",
                "optional": true,
                "arguments": [
                    {
                        "name": "count",
                        "type": "integer",
                        "display_text": "count"
                    },
                    {
                        "name": "withvalues",
                        "type": "pure-token",
                        "display_text": "withvalues",
                        "token": "WITHVALUES",
                        "optional": true
                    }
                ]
            }
        ],
        "command_flags": [
            "readonly"
        ],
        "hints": [
            "nondeterministic_output"
        ]
    },
    "HSCAN": {
        "summary": "Iterates over fields and values of a hash.",
        "since": "2.8.0",
        "group": "hash",
        "complexity": "O(1) for every call. O(N) for a complete iteration, including enough command calls for the cursor to return back to 0. N is the number of elements inside the collection.",
        "acl_categories": [
            "@read",
            "@hash",
            "@slow"
        ],
        "arity": -3,
        "key_specs": [
            {
                "begin_search": {
                    "type": "index",
                    "spec": {
                        "index": 1
                    }
                },
                "find_keys": {
                    "type": "range",
                    "spec": {
                        "lastkey": 0,
                        "keystep": 1,
                        "limit": 0
                    }
                },
                "RO": true,
                "access": true
            }
        ],
        "arguments": [
            {
                "name": "key",
                "type": "key",
                "display_text": "key",
                "key_spec_index": 0
            },
            {
                "name": "cursor",
                "type": "integer",
                "display_text": "cursor"
            },
            {
                "name": "pattern",
                "type": "pattern",
                "display_text": "pattern",
                "token": "MATCH",
                "optional": true
            },
            {
                "name": "count",
                "type": "integer",
                "display_text": "count",
                "token": "COUNT",
                "optional": true
            }
        ],
        "command_flags": [
            "readonly"
        ],
        "hints": [
            "nondeterministic_output"
        ]
    },
    "HSET": {
        "summary": "Creates or modifies the value of a field in a hash.",
        "since": "2.0.0",
        "group": "hash",
        "complexity": "O(1) for each field/value pair added, so O(N) to add N field/value pairs when the command is called with multiple field/value pairs.",
        "history": [
            [
                "4.0.0",
                "Accepts multiple `field` and `value` arguments."
            ]
        ],
        "acl_categories": [
            "@write",
            "@hash",
            "@fast"
        ],
        "arity": -4,
        "key_specs": [
            {
                "begin_search": {
                    "type": "index",
                    "spec": {
                        "index": 1
                    }
                },
                "find_keys": {
                    "type": "range",
                    "spec": {
                        "lastkey": 0,
                        "keystep": 1,
                        "limit": 0
                    }
                },
                "RW": true,
                "update": true
            }
        ],

script/commands.json  view on Meta::CPAN

                "begin_search": {
                    "type": "index",
                    "spec": {
                        "index": 1
                    }
                },
                "find_keys": {
                    "type": "range",
                    "spec": {
                        "lastkey": 0,
                        "keystep": 1,
                        "limit": 0
                    }
                },
                "RW": true,
                "insert": true
            }
        ],
        "arguments": [
            {
                "name": "key",
                "type": "key",
                "display_text": "key",
                "key_spec_index": 0
            },
            {
                "name": "member",
                "type": "string",
                "display_text": "member",
                "multiple": true
            }
        ],
        "command_flags": [
            "write",
            "denyoom",
            "fast"
        ]
    },
    "SAVE": {
        "summary": "Synchronously saves the database(s) to disk.",
        "since": "1.0.0",
        "group": "server",
        "complexity": "O(N) where N is the total number of keys in all databases",
        "acl_categories": [
            "@admin",
            "@slow",
            "@dangerous"
        ],
        "arity": 1,
        "command_flags": [
            "admin",
            "noscript",
            "no_async_loading",
            "no_multi"
        ]
    },
    "SCAN": {
        "summary": "Iterates over the key names in the database.",
        "since": "2.8.0",
        "group": "generic",
        "complexity": "O(1) for every call. O(N) for a complete iteration, including enough command calls for the cursor to return back to 0. N is the number of elements inside the collection.",
        "history": [
            [
                "6.0.0",
                "Added the `TYPE` subcommand."
            ]
        ],
        "acl_categories": [
            "@keyspace",
            "@read",
            "@slow"
        ],
        "arity": -2,
        "arguments": [
            {
                "name": "cursor",
                "type": "integer",
                "display_text": "cursor"
            },
            {
                "name": "pattern",
                "type": "pattern",
                "display_text": "pattern",
                "token": "MATCH",
                "optional": true
            },
            {
                "name": "count",
                "type": "integer",
                "display_text": "count",
                "token": "COUNT",
                "optional": true
            },
            {
                "name": "type",
                "type": "string",
                "display_text": "type",
                "token": "TYPE",
                "since": "6.0.0",
                "optional": true
            }
        ],
        "command_flags": [
            "readonly"
        ],
        "hints": [
            "nondeterministic_output",
            "request_policy:special",
            "response_policy:special"
        ]
    },
    "SCARD": {
        "summary": "Returns the number of members in a set.",
        "since": "1.0.0",
        "group": "set",
        "complexity": "O(1)",
        "acl_categories": [
            "@read",
            "@set",
            "@fast"
        ],
        "arity": 2,
        "key_specs": [
            {
                "begin_search": {
                    "type": "index",
                    "spec": {
                        "index": 1
                    }
                },
                "find_keys": {
                    "type": "range",
                    "spec": {
                        "lastkey": 0,
                        "keystep": 1,
                        "limit": 0
                    }
                },

script/commands.json  view on Meta::CPAN

    "SREM": {
        "summary": "Removes one or more members from a set. Deletes the set if the last member was removed.",
        "since": "1.0.0",
        "group": "set",
        "complexity": "O(N) where N is the number of members to be removed.",
        "history": [
            [
                "2.4.0",
                "Accepts multiple `member` arguments."
            ]
        ],
        "acl_categories": [
            "@write",
            "@set",
            "@fast"
        ],
        "arity": -3,
        "key_specs": [
            {
                "begin_search": {
                    "type": "index",
                    "spec": {
                        "index": 1
                    }
                },
                "find_keys": {
                    "type": "range",
                    "spec": {
                        "lastkey": 0,
                        "keystep": 1,
                        "limit": 0
                    }
                },
                "RW": true,
                "delete": true
            }
        ],
        "arguments": [
            {
                "name": "key",
                "type": "key",
                "display_text": "key",
                "key_spec_index": 0
            },
            {
                "name": "member",
                "type": "string",
                "display_text": "member",
                "multiple": true
            }
        ],
        "command_flags": [
            "write",
            "fast"
        ]
    },
    "SSCAN": {
        "summary": "Iterates over members of a set.",
        "since": "2.8.0",
        "group": "set",
        "complexity": "O(1) for every call. O(N) for a complete iteration, including enough command calls for the cursor to return back to 0. N is the number of elements inside the collection.",
        "acl_categories": [
            "@read",
            "@set",
            "@slow"
        ],
        "arity": -3,
        "key_specs": [
            {
                "begin_search": {
                    "type": "index",
                    "spec": {
                        "index": 1
                    }
                },
                "find_keys": {
                    "type": "range",
                    "spec": {
                        "lastkey": 0,
                        "keystep": 1,
                        "limit": 0
                    }
                },
                "RO": true,
                "access": true
            }
        ],
        "arguments": [
            {
                "name": "key",
                "type": "key",
                "display_text": "key",
                "key_spec_index": 0
            },
            {
                "name": "cursor",
                "type": "integer",
                "display_text": "cursor"
            },
            {
                "name": "pattern",
                "type": "pattern",
                "display_text": "pattern",
                "token": "MATCH",
                "optional": true
            },
            {
                "name": "count",
                "type": "integer",
                "display_text": "count",
                "token": "COUNT",
                "optional": true
            }
        ],
        "command_flags": [
            "readonly"
        ],
        "hints": [
            "nondeterministic_output"
        ]
    },
    "SSUBSCRIBE": {
        "summary": "Listens for messages published to shard channels.",
        "since": "7.0.0",
        "group": "pubsub",
        "complexity": "O(N) where N is the number of shard channels to subscribe to.",
        "acl_categories": [
            "@pubsub",
            "@slow"
        ],
        "arity": -2,
        "key_specs": [
            {
                "begin_search": {
                    "type": "index",
                    "spec": {
                        "index": 1
                    }
                },
                "find_keys": {
                    "type": "range",
                    "spec": {
                        "lastkey": -1,
                        "keystep": 1,
                        "limit": 0
                    }
                },
                "not_key": true
            }
        ],
        "arguments": [
            {
                "name": "shardchannel",
                "type": "string",
                "display_text": "shardchannel",
                "multiple": true
            }
        ],

script/commands.json  view on Meta::CPAN

            [
                "7.2.0",
                "Added the optional `WITHSCORE` argument."
            ]
        ],
        "acl_categories": [
            "@read",
            "@sortedset",
            "@fast"
        ],
        "arity": -3,
        "key_specs": [
            {
                "begin_search": {
                    "type": "index",
                    "spec": {
                        "index": 1
                    }
                },
                "find_keys": {
                    "type": "range",
                    "spec": {
                        "lastkey": 0,
                        "keystep": 1,
                        "limit": 0
                    }
                },
                "RO": true,
                "access": true
            }
        ],
        "arguments": [
            {
                "name": "key",
                "type": "key",
                "display_text": "key",
                "key_spec_index": 0
            },
            {
                "name": "member",
                "type": "string",
                "display_text": "member"
            },
            {
                "name": "withscore",
                "type": "pure-token",
                "display_text": "withscore",
                "token": "WITHSCORE",
                "optional": true
            }
        ],
        "command_flags": [
            "readonly",
            "fast"
        ]
    },
    "ZSCAN": {
        "summary": "Iterates over members and scores of a sorted set.",
        "since": "2.8.0",
        "group": "sorted-set",
        "complexity": "O(1) for every call. O(N) for a complete iteration, including enough command calls for the cursor to return back to 0. N is the number of elements inside the collection.",
        "acl_categories": [
            "@read",
            "@sortedset",
            "@slow"
        ],
        "arity": -3,
        "key_specs": [
            {
                "begin_search": {
                    "type": "index",
                    "spec": {
                        "index": 1
                    }
                },
                "find_keys": {
                    "type": "range",
                    "spec": {
                        "lastkey": 0,
                        "keystep": 1,
                        "limit": 0
                    }
                },
                "RO": true,
                "access": true
            }
        ],
        "arguments": [
            {
                "name": "key",
                "type": "key",
                "display_text": "key",
                "key_spec_index": 0
            },
            {
                "name": "cursor",
                "type": "integer",
                "display_text": "cursor"
            },
            {
                "name": "pattern",
                "type": "pattern",
                "display_text": "pattern",
                "token": "MATCH",
                "optional": true
            },
            {
                "name": "count",
                "type": "integer",
                "display_text": "count",
                "token": "COUNT",
                "optional": true
            }
        ],
        "command_flags": [
            "readonly"
        ],
        "hints": [
            "nondeterministic_output"
        ]
    },
    "ZSCORE": {
        "summary": "Returns the score of a member in a sorted set.",
        "since": "1.2.0",
        "group": "sorted-set",
        "complexity": "O(1)",
        "acl_categories": [
            "@read",
            "@sortedset",
            "@fast"
        ],
        "arity": 3,
        "key_specs": [
            {
                "begin_search": {
                    "type": "index",
                    "spec": {
                        "index": 1
                    }
                },
                "find_keys": {
                    "type": "range",
                    "spec": {
                        "lastkey": 0,
                        "keystep": 1,
                        "limit": 0
                    }
                },
                "RO": true,
                "access": true
            }
        ],
        "arguments": [
            {
                "name": "key",
                "type": "key",
                "display_text": "key",
                "key_spec_index": 0



( run in 0.913 second using v1.01-cache-2.11-cpan-39bf76dae61 )