) constants. Otherwise it will * return the string that Redis returns. * * @param mixed $key * @return Cluster|int|string|false */ #[\Relay\Attributes\RedisCommand] public function type(mixed $key): Cluster|int|string|bool {} /** * Removes the specified keys without blocking Redis. * * @param mixed $keys,... * @return Cluster|int|false */ #[\Relay\Attributes\RedisCommand] public function unlink(mixed ...$keys): Cluster|int|false {} /** * Unsubscribes from the given channels, or from all of them if none is given. * * @param array $channels * @return bool */ #[\Relay\Attributes\RedisCommand] public function unsubscribe(array $channels = []): bool {} /** * Flushes all the previously watched keys for a transaction. * If you call EXEC or DISCARD, there's no need to manually call UNWATCH. * * @return Cluster|bool */ #[\Relay\Attributes\RedisCommand] public function unwatch(): Cluster|bool {} /** * Marks the given keys to be watched for conditional execution of a transaction. * * @param mixed $key * @param mixed $other_keys,... * @return Cluster|bool */ #[\Relay\Attributes\RedisCommand] public function watch(mixed $key, mixed ...$other_keys): Cluster|bool {} /** * Acknowledge one or more IDs as having been processed by the consumer group. * * @param mixed $key * @param string $group * @param array $ids * @return Cluster|int|false */ #[\Relay\Attributes\RedisCommand] public function xack(mixed $key, string $group, array $ids): Cluster|int|false {} /** * Append a message to a stream. * * @param string $key * @param string $id * @param int $maxlen * @param bool $approx * @param bool $nomkstream * @return Cluster|string|false */ #[\Relay\Attributes\RedisCommand] public function xadd(mixed $key, string $id, array $values, int $maxlen = 0, bool $approx = false, bool $nomkstream = false): Cluster|string|false {} /** * Automatically take ownership of stream message(s) by metrics * * @param string $key * @param string $group * @param string $consumer * @param int $min_idle * @param string $start * @param int $count * @param bool $justid * @return Cluster|array|bool */ #[\Relay\Attributes\RedisCommand] public function xautoclaim(mixed $key, string $group, string $consumer, int $min_idle, string $start, int $count = -1, bool $justid = false): Cluster|bool|array {} /** * Claim ownership of stream message(s). * * @param string $key * @param string $group * @param string $consumer * @param int $min_idle * @param array $ids * @param array $options * @return Cluster|array|bool */ #[\Relay\Attributes\RedisCommand] public function xclaim(mixed $key, string $group, string $consumer, int $min_idle, array $ids, array $options): Cluster|array|bool {} /** * Remove one or more specific IDs from a stream. * * @param string $key * @param array $ids * @return Cluster|int|false */ #[\Relay\Attributes\RedisCommand] public function xdel(mixed $key, array $ids): Cluster|int|false {} /** * Perform utility operations having to do with consumer groups * * @param string $operation * @param mixed $key * @param string $group * @param string $id_or_consumer * @param bool $mkstream * @param int $entries_read * @return mixed */ #[\Relay\Attributes\RedisCommand] public function xgroup(string $operation, mixed $key = null, string $group = null, string $id_or_consumer = null, bool $mkstream = false, int $entries_read = -2): mixed {} /** * Retrieve information about a stream key. * * @param string $operation * @param string|null $arg1 * @param string|null $arg2 * @param int $count * @return mixed */ #[\Relay\Attributes\RedisCommand] public function xinfo(string $operation, string|null $arg1 = null, string|null $arg2 = null, int $count = -1): mixed {} /** * Get the length of a stream. * * @param mixed $key * @return Cluster|int|false */ #[\Relay\Attributes\RedisCommand] public function xlen(mixed $key): Cluster|int|false {} /** * Query pending entries in a stream. * * @param string $key * @param string $group * @param string|null $start * @param string|null $end * @param int $count * @param string|null $consumer * @param int $idle * @return Cluster|array|false */ #[\Relay\Attributes\RedisCommand] public function xpending(mixed $key, string $group, string|null $start = null, string|null $end = null, int $count = -1, string|null $consumer = null, int $idle = 0): Cluster|array|false {} /** * Lists elements in a stream. * * @param mixed $key * @param string $start * @param string $end * @param int $count = -1 * @return Cluster|array|false */ #[\Relay\Attributes\RedisCommand] public function xrange(mixed $key, string $start, string $end, int $count = -1): Cluster|array|false {} /** * Read messages from a stream. * * @param array $streams * @param int $count * @param int $block * @return Cluster|array|bool|null */ #[\Relay\Attributes\RedisCommand] public function xread(array $streams, int $count = -1, int $block = -1): Cluster|array|bool|null {} /** * Read messages from a stream using a consumer group. * * @param mixed $key * @param string $consumer * @param array $streams * @param int $count * @param int $block * @return Cluster|array|bool|null */ #[\Relay\Attributes\RedisCommand] public function xreadgroup(mixed $key, string $consumer, array $streams, int $count = 1, int $block = 1): Cluster|array|bool|null {} /** * Get a range of entries from a STREAM ke in reverse chronological order. * * @param mixed $key * @param string $end * @param string $start * @param int $count * @return Cluster|array|bool */ #[\Relay\Attributes\RedisCommand] public function xrevrange(mixed $key, string $end, string $start, int $count = -1): Cluster|array|bool {} /** * Truncate a STREAM key in various ways. * * @param mixed $key * @param string $threshold * @param bool $approx * @param bool $minid * @param int $limit * @return Cluster|int|false */ #[\Relay\Attributes\RedisCommand] public function xtrim(mixed $key, string $threshold, bool $approx = false, bool $minid = false, int $limit = -1): Cluster|int|false {} /** * Adds all the specified members with the specified scores to the sorted set stored at key. * * @param mixed $key * @param mixed $args,... * @return mixed */ #[\Relay\Attributes\RedisCommand] public function zadd(mixed $key, mixed ...$args): mixed {} /** * Returns the sorted set cardinality (number of elements) of the sorted set stored at key. * * @param mixed $key * @return Cluster|int|false */ #[\Relay\Attributes\RedisCommand] public function zcard(mixed $key): Cluster|int|false {} /** * Returns the number of elements in the sorted set at key with a score between min and max. * * @param mixed $key * @param mixed $min * @param mixed $max * @return Cluster|int|false */ #[\Relay\Attributes\RedisCommand] public function zcount(mixed $key, mixed $min, mixed $max): Cluster|int|false {} /** * This command is similar to ZDIFFSTORE, but instead of storing the * resulting sorted set, it is returned to the client. * * @param array $keys * @param array|null $options * @return Cluster|array|false */ #[\Relay\Attributes\RedisCommand] public function zdiff(array $keys, array|null $options = null): Cluster|array|false {} /** * Computes the difference between the first and all successive * input sorted sets and stores the result in destination. * * @param mixed $dstkey * @param array $keys * @return Cluster|int|false */ #[\Relay\Attributes\RedisCommand] public function zdiffstore(mixed $dstkey, array $keys): Cluster|int|false {} /** * Increments the score of member in the sorted set stored at key by increment. * * @param mixed $key * @param float $score * @param mixed $member * @return Cluster|float|false */ #[\Relay\Attributes\RedisCommand] public function zincrby(mixed $key, float $score, mixed $member): Cluster|float|false {} /** * This command is similar to ZINTERSTORE, but instead of storing * the resulting sorted set, it is returned to the client. * * @param array $keys * @param array|null $weights * @param mixed $options * @return Cluster|array|false */ #[\Relay\Attributes\RedisCommand] public function zinter(array $keys, array|null $weights = null, mixed $options = null): Cluster|array|false {} /** * Intersect multiple sorted sets and return the cardinality of the result. * * @param array $keys * @param int $limit * @return Cluster|int|false */ #[\Relay\Attributes\RedisCommand] public function zintercard(array $keys, int $limit = -1): Cluster|int|false {} /** * Computes the intersection of numkeys sorted sets given by the * specified keys, and stores the result in destination. * * @param mixed $dstkey * @param array $keys * @param array|null $weights * @param mixed $options * @return Cluster|int|false */ #[\Relay\Attributes\RedisCommand] public function zinterstore(mixed $dstkey, array $keys, array|null $weights = null, mixed $options = null): Cluster|int|false {} /** * When all the elements in a sorted set are inserted with the same score, * in order to force lexicographical ordering, this command returns the * number of elements in the sorted set at key with a value between min and max. * * @param mixed $key * @param mixed $min * @param mixed $max * @return Cluster|int|false */ #[\Relay\Attributes\RedisCommand] public function zlexcount(mixed $key, mixed $min, mixed $max): Cluster|int|false {} /** * Pops one or more elements, that are member-score pairs, from the * first non-empty sorted set in the provided list of key names. * * @param array $keys * @param string $from * @param int $count * @return Cluster|array|null|false */ #[\Relay\Attributes\RedisCommand] public function zmpop(array $keys, string $from, int $count = 1): Cluster|array|null|false {} /** * Returns the scores associated with the specified members in the sorted set stored at key. * * @param mixed $key * @param mixed $members,... * @return Cluster|array|false */ #[\Relay\Attributes\RedisCommand] public function zmscore(mixed $key, mixed ...$members): Cluster|array|false {} /** * Removes and returns up to count members with the highest * scores in the sorted set stored at key. * * @param mixed $key * @param int $count * @return Cluster|array|false */ #[\Relay\Attributes\RedisCommand] public function zpopmax(mixed $key, int $count = 1): Cluster|array|false {} /** * Removes and returns up to count members with the lowest * scores in the sorted set stored at key. * * @param mixed $key * @param int $count * @return Cluster|array|false */ #[\Relay\Attributes\RedisCommand] public function zpopmin(mixed $key, int $count = 1): Cluster|array|false {} /** * When called with just the key argument, return a random element from the sorted set value stored at key. * If the provided count argument is positive, return an array of distinct elements. * * @param mixed $key * @param array|null $options * @return mixed */ #[\Relay\Attributes\RedisCommand] public function zrandmember(mixed $key, array|null $options = null): mixed {} /** * Returns the specified range of elements in the sorted set stored at key. * * @param mixed $key * @param string $start * @param string $end * @param mixed $options * @return Cluster|array|false */ #[\Relay\Attributes\RedisCommand] public function zrange(mixed $key, string $start, string $end, mixed $options = null): Cluster|array|false {} /** * When all the elements in a sorted set are inserted with the same score, * in order to force lexicographical ordering, this command returns all * the elements in the sorted set at key with a value between min and max. * * @param mixed $key * @param mixed $min * @param mixed $max * @param int $offset * @param int $count * @return Cluster|array|false */ #[\Relay\Attributes\RedisCommand] public function zrangebylex(mixed $key, mixed $min, mixed $max, int $offset = -1, int $count = -1): Cluster|array|false {} /** * Returns all the elements in the sorted set at key with a score between * min and max (including elements with score equal to min or max). * * @param mixed $key * @param mixed $start * @param mixed $end * @param mixed $options * @return Cluster|array|false */ #[\Relay\Attributes\RedisCommand] public function zrangebyscore(mixed $key, mixed $start, mixed $end, mixed $options = null): Cluster|array|false {} /** * Returns all the elements in the sorted set at key with a score between * max and min (including elements with score equal to max or min). * * @param mixed $dstkey * @param mixed $srckey * @param mixed $start * @param mixed $end * @param mixed $options * @return Cluster|int|false */ #[\Relay\Attributes\RedisCommand] public function zrangestore(mixed $dstkey, mixed $srckey, mixed $start, mixed $end, mixed $options = null): Cluster|int|false {} /** * Returns the rank of member in the sorted set stored at key, with the scores * ordered from low to high. The rank (or index) is 0-based, which means * that the member with the lowest score has rank 0. * * @param mixed $key * @param mixed $rank * @param bool $withscore * @return Cluster|array|int|false */ #[\Relay\Attributes\RedisCommand] public function zrank(mixed $key, mixed $rank, bool $withscore = false): Cluster|array|int|false {} /** * Removes the specified members from the sorted set stored at key. * Non existing members are ignored. * * @param mixed $key * @param mixed $args,... * @return Cluster|int|false */ #[\Relay\Attributes\RedisCommand] public function zrem(mixed $key, mixed ...$args): Cluster|int|false {} /** * When all the elements in a sorted set are inserted with the same score, * in order to force lexicographical ordering, this command removes all * elements in the sorted set stored at key between the * lexicographical range specified by min and max. * * @param mixed $key * @param mixed $min * @param mixed $max * @return Cluster|int|false */ #[\Relay\Attributes\RedisCommand] public function zremrangebylex(mixed $key, mixed $min, mixed $max): Cluster|int|false {} /** * Removes all elements in the sorted set stored at key with rank between * start and stop. Both start and stop are 0 -based indexes with 0 being * the element with the lowest score. * * @param mixed $key * @param int $start * @param int $end * @return Cluster|int|false */ #[\Relay\Attributes\RedisCommand] public function zremrangebyrank(mixed $key, int $start, int $end): Cluster|int|false {} /** * Removes all elements in the sorted set stored at key with * a score between min and max (inclusive). * * @param mixed $key * @param mixed $min * @param mixed $max * @return Cluster|int|false */ #[\Relay\Attributes\RedisCommand] public function zremrangebyscore(mixed $key, mixed $min, mixed $max): Cluster|int|false {} /** * Returns the specified range of elements in the sorted set stored at key. * * @param mixed $key * @param int $start * @param int $end * @param mixed $options * @return Cluster|array|false */ #[\Relay\Attributes\RedisCommand] public function zrevrange(mixed $key, int $start, int $end, mixed $options = null): Cluster|array|false {} /** * When all the elements in a sorted set are inserted with the same score, * in order to force lexicographical ordering, this command returns all * the elements in the sorted set at key with a value between max and min. * * @param mixed $key * @param mixed $max * @param mixed $min * @param int $offset * @param int $count * @return Cluster|array|false */ #[\Relay\Attributes\RedisCommand] public function zrevrangebylex(mixed $key, mixed $max, mixed $min, int $offset = -1, int $count = -1): Cluster|array|false {} /** * Returns all the elements in the sorted set at key with a score between * max and min (including elements with score equal to max or min). * * @param mixed $key * @param mixed $start * @param mixed $end * @param mixed $options * @return Cluster|array|false */ #[\Relay\Attributes\RedisCommand] public function zrevrangebyscore(mixed $key, mixed $start, mixed $end, mixed $options = null): Cluster|array|false {} /** * Returns the rank of member in the sorted set stored at key, with the scores * ordered from high to low. The rank (or index) is 0-based, which means * that the member with the highest score has rank 0. * * @param mixed $key * @param mixed $rank * @param bool $withscore * @return Cluster|array|int|false */ #[\Relay\Attributes\RedisCommand] public function zrevrank(mixed $key, mixed $rank, bool $withscore = false): Cluster|array|int|false {} /** * Iterates elements of Sorted Set types and their associated scores. * * @param mixed $key * @param mixed $iterator * @param mixed $match * @param int $count * @return array|false */ #[\Relay\Attributes\RedisCommand] public function zscan(mixed $key, mixed &$iterator, mixed $match = null, int $count = 0): array|false {} /** * Returns the score of member in the sorted set at key. * * @param mixed $key * @param mixed $member * @return Cluster|float|false */ #[\Relay\Attributes\RedisCommand] public function zscore(mixed $key, mixed $member): Cluster|float|false {} /** * This command is similar to ZUNIONSTORE, but instead of storing * the resulting sorted set, it is returned to the client. * * @param array $keys * @param array|null $weights * @param mixed $options * @return Cluster|array|false */ #[\Relay\Attributes\RedisCommand] public function zunion(array $keys, array|null $weights = null, mixed $options = null): Cluster|array|false {} /** * Computes the union of numkeys sorted sets given by the * specified keys, and stores the result in destination. * * @param mixed $dstkey * @param array $keys * @param array|null $weights * @param mixed $options * @return Cluster|int|false */ #[\Relay\Attributes\RedisCommand] public function zunionstore(mixed $dstkey, array $keys, array|null $weights = null, mixed $options = null): Cluster|int|false {} }