1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-05 13:10:49 +01:00
psalm/stubs/extensions/redis.phpstub

557 lines
20 KiB
PHP
Raw Normal View History

2022-02-09 08:14:58 +01:00
<?php
/**
2023-01-09 14:12:39 +01:00
* @see https://github.com/phpredis/phpredis/blob/develop/redis.stub.php
* @see https://github.com/phpredis/phpredis/blob/develop/redis_array.stub.php
* @see https://github.com/phpredis/phpredis/blob/develop/redis_cluster.stub.php
* @see https://github.com/phpredis/phpredis/blob/develop/redis_sentinel.stub.php
2022-02-09 08:14:58 +01:00
*/
class Redis {
2023-01-09 14:12:39 +01:00
public function __construct(array $options = null) {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function _compress(string $value): string {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function __destruct() {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function _pack(mixed $value): string {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function _prefix(string $key): string {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function _serialize(mixed $value): string {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function _uncompress(string $value): string {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function _unpack(string $value): mixed {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function _unserialize(string $value): mixed {}
2022-02-09 08:14:58 +01:00
/**
* @param string $args
* @return mixed|Redis
*/
2023-01-09 14:12:39 +01:00
public function acl(string $subcmd, ...$args) {}
2022-02-09 08:14:58 +01:00
/** @return false|int|Redis */
2023-01-09 14:12:39 +01:00
public function append(string $key, string $value) {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function auth(mixed $credentials): bool {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function bgSave(): bool {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function bgrewriteaof(): bool {}
2022-02-09 08:14:58 +01:00
/** @return false|int|Redis */
2023-01-09 14:12:39 +01:00
public function bitcount(string $key, int $start = 0, int $end = -1) {}
2022-02-09 08:14:58 +01:00
/**
* @return false|int|Redis
2022-02-09 08:14:58 +01:00
*/
2023-01-09 14:12:39 +01:00
public function bitop(string $operation, string $deskey, string $srckey, string ...$other_keys): int {}
2022-02-09 08:14:58 +01:00
/** @return false|int|Redis */
2023-01-09 14:12:39 +01:00
public function bitpos(string $key, int $bit, int $start = 0, int $end = -1) {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function blPop(string|array $key, string|int $timeout_or_key, mixed ...$extra_args): array|null|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function brPop(string|array $key, string|int $timeout_or_key, mixed ...$extra_args): array|null|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function brpoplpush(string $src, string $dst, int $timeout): Redis|string|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function bzPopMax(string|array $key, string|int $timeout_or_key, mixed ...$extra_args): array|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function bzPopMin(string|array $key, string|int $timeout_or_key, mixed ...$extra_args): array|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function clearLastError(): bool {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function client(string $opt, string $arg = null): mixed {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function close(): bool {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function command(string $opt = null, string|array $arg): mixed {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function config(string $operation, string $key, mixed $value = null): mixed {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function connect(string $host, int $port = 6379, float $timeout = 0, string $persistent_id = null, int $retry_interval = 0, float $read_timeout = 0, array $context = null): bool {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function copy(string $src, string $dst, array $options = null): bool {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function dbSize(): int {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function debug(string $key): string {}
2022-02-09 08:14:58 +01:00
/** @return false|int|Redis */
2023-01-09 14:12:39 +01:00
public function decr(string $key, int $by = 1) {}
2022-02-09 08:14:58 +01:00
/** @return false|int|Redis */
2023-01-09 14:12:39 +01:00
public function decrBy(string $key, int $value) {}
2022-02-09 08:14:58 +01:00
/**
* @return false|int|Redis
2022-02-09 08:14:58 +01:00
*/
2023-01-09 14:12:39 +01:00
public function del(array|string $key, string ...$other_keys) {}
2022-02-09 08:14:58 +01:00
/**
* @deprecated
* @alias Redis::del
* @return false|int|Redis
2022-02-09 08:14:58 +01:00
*/
2023-01-09 14:12:39 +01:00
public function delete(array|string $key, string ...$other_keys) {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function discard(): bool {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function dump(string $key): string {}
2022-02-09 08:14:58 +01:00
/** @return false|string|Redis */
2023-01-09 14:12:39 +01:00
public function echo(string $str) {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function eval(string $script, array $keys = null, int $num_keys = 0): mixed {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function evalsha(string $sha1, array $keys = null, int $num_keys = 0): mixed {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function exec(): Redis|array|false {}
2022-02-09 08:14:58 +01:00
/** @return int|Redis|bool */
2023-01-09 14:12:39 +01:00
public function exists(mixed $key, mixed ...$other_keys) {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function expire(string $key, int $timeout): Redis|bool {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function expireAt(string $key, int $timestamp): Redis|bool {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function flushAll(bool $async = false): bool {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function flushDB(bool $async = false): bool {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function geoadd(string $key, float $lng, float $lat, string $member, mixed ...$other_triples): int {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function geodist(string $key, string $src, string $dst, ?string $unit = null): Redis|float|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function geohash(string $key, string $member, string ...$other_members): array|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function geopos(string $key, string $member, string ...$other_members): Redis|array|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function georadius(string $key, float $lng, float $lat, float $radius, string $unit, array $options = []): Redis|mixed|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function georadius_ro(string $key, float $lng, float $lat, float $radius, string $unit, array $options = []): Redis|mixed|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function georadiusbymember(string $key, string $member, float $radius, string $unit, array $options = []): Redis|mixed|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function georadiusbymember_ro(string $key, string $member, float $radius, string $unit, array $options = []): Redis|mixed|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function geosearch(string $key, array|string $position, array|int|float $shape, string $unit, array $options = []): array|false {}
2023-01-09 14:12:39 +01:00
public function geosearchstore(string $dst, string $src, array|string $position, array|int|float $shape, string $unit, array $options = []): array|false {}
2022-06-21 21:03:11 +02:00
/** @return false|string|Redis */
2023-01-09 14:12:39 +01:00
public function get(string $key) {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function getAuth(): mixed {}
2022-02-09 08:14:58 +01:00
/** @return false|int|Redis */
2023-01-09 14:12:39 +01:00
public function getBit(string $key, int $idx) {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function getDBNum(): int {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function getHost(): string {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function getLastError(): ?string {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function getMode(): int {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function getOption(int $option): mixed {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function getPersistentID(): ?string {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function getPort(): int {}
2022-02-09 08:14:58 +01:00
/** @return false|string|Redis */
2023-01-09 14:12:39 +01:00
public function getRange(string $key, int $start, int $end) {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function getReadTimeout(): int {}
2022-02-09 08:14:58 +01:00
/** @return false|string|Redis */
2023-01-09 14:12:39 +01:00
public function getset(string $key, string $value) {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function getTimeout(): int {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function hDel(string $key, string $member, string ...$other_members): Redis|int|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function hExists(string $key, string $member): Redis|bool {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function hGet(string $key, string $member): Redis|mixed|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function hGetAll(string $key): Redis|array|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function hIncrBy(string $key, string $member, int $value): Redis|int|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function hIncrByFloat(string $key, string $member, float $value): Redis|float|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function hKeys(string $key): Redis|array|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function hLen(string $key): Redis|int|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function hMget(string $key, array $keys): Redis|array|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function hMset(string $key, array $keyvals): Redis|bool|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function hSet(string $key, string $member, string $value): Redis|int|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function hSetNx(string $key, string $member, string $value): Redis|bool {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function hStrLen(string $key, string $member): int {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function hVals(string $key): Redis|array|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function hscan(string $key, ?int &$iterator, ?string $pattern = null, int $count = 0): bool|array {}
2022-02-09 08:14:58 +01:00
/** @return false|int|Redis */
2023-01-09 14:12:39 +01:00
public function incr(string $key, int $by = 1) {}
2022-02-09 08:14:58 +01:00
/** @return false|int|Redis */
2023-01-09 14:12:39 +01:00
public function incrBy(string $key, int $value) {}
2022-02-09 08:14:58 +01:00
/** @return false|int|Redis */
2023-01-09 14:12:39 +01:00
public function incrByFloat(string $key, float $value) {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function info(string $opt = null): Redis|array|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function isConnected(): bool {}
2022-02-09 08:14:58 +01:00
/** @return false|array|Redis */
2023-01-09 14:12:39 +01:00
public function keys(string $pattern) {}
2022-02-09 08:14:58 +01:00
/**
* @param mixed $elements
* @return false|int|Redis
2022-02-09 08:14:58 +01:00
*/
2023-01-09 14:12:39 +01:00
public function lInsert(string $key, string $pos, mixed $pivot, mixed $value) {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function lLen(string $key): Redis|int|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function lMove(string $src, string $dst, string $wherefrom, string $whereto): string {}
2022-02-09 08:14:58 +01:00
/** @return false|string|Redis */
2023-01-09 14:12:39 +01:00
public function lPop(string $key) {}
2022-02-09 08:14:58 +01:00
/**
* @param mixed $elements
* @return false|int|Redis
2022-02-09 08:14:58 +01:00
*/
2023-01-09 14:12:39 +01:00
public function lPush(string $key, ...$elements) {}
2022-02-09 08:14:58 +01:00
/**
* @param mixed $elements
* @return false|int|Redis
2022-02-09 08:14:58 +01:00
*/
2023-01-09 14:12:39 +01:00
public function rPush(string $key, ...$elements) {}
2022-02-09 08:14:58 +01:00
/** @return false|int|Redis */
2023-01-09 14:12:39 +01:00
public function lPushx(string $key, string $value) {}
2022-02-09 08:14:58 +01:00
/** @return false|int|Redis */
2023-01-09 14:12:39 +01:00
public function rPushx(string $key, string $value) {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function lSet(string $key, int $index, string $value): Redis|bool {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function lastSave(): int {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function lindex(string $key, int $index): Redis|mixed|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function lrange(string $key, int $start , int $end): Redis|array|false {}
2022-02-09 08:14:58 +01:00
/**
* @return int|Redis|false
*/
2023-01-09 14:12:39 +01:00
public function lrem(string $key, string $value, int $count = 0) {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function ltrim(string $key, int $start , int $end): Redis|bool {}
2022-02-09 08:14:58 +01:00
/** @return false|list<false|string>|Redis */
2023-01-09 14:12:39 +01:00
public function mget(array $keys) {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function migrate(string $host, int $port, string $key, string $dst, int $timeout, bool $copy = false, bool $replace = false): bool {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function move(string $key, int $index): bool {}
2022-02-09 08:14:58 +01:00
/**
* @param array<int|string, string>
*/
2023-01-09 14:12:39 +01:00
public function mset($key_values): Redis|bool {}
2022-02-09 08:14:58 +01:00
/**
* @param array<int|string, string>
*/
2023-01-09 14:12:39 +01:00
public function msetnx($key_values): Redis|bool {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function multi(int $value = Redis::MULTI): bool|Redis {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function object(string $subcommand, string $key): Redis|int|string|false {}
2022-02-09 08:14:58 +01:00
/**
* @deprecated
* @alias Redis::connect
*/
2023-01-09 14:12:39 +01:00
public function open(string $host, int $port = 6379, float $timeout = 0, string $persistent_id = NULL, int $retry_interval = 0, float $read_timeout = 0, array $context = NULL): bool {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function pconnect(string $host, int $port = 6379, float $timeout = 0, string $persistent_id = NULL, int $retry_interval = 0, float $read_timeout = 0, array $context = NULL): bool {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function persist(string $key): bool {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function pexpire(string $key, int $timeout): bool {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function pexpireAt(string $key, int $timestamp): bool {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function pfadd(string $key, array $elements): int {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function pfcount(string $key): int {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function pfmerge(string $dst, array $keys): bool {}
2022-02-09 08:14:58 +01:00
/** @return false|string|Redis */
2023-01-09 14:12:39 +01:00
public function ping(string $key = NULL) {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function pipeline(): bool|Redis {}
2022-02-09 08:14:58 +01:00
/**
* @deprecated
* @alias Redis::pconnect
*/
2023-01-09 14:12:39 +01:00
public function popen(string $host, int $port = 6379, float $timeout = 0, string $persistent_id = NULL, int $retry_interval = 0, float $read_timeout = 0, array $context = NULL): bool {}
2022-02-09 08:14:58 +01:00
/** @return bool|Redis */
2023-01-09 14:12:39 +01:00
public function psetex(string $key, int $expire, string $value) {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function psubscribe(array $patterns): void {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function pttl(string $key): Redis|int|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function publish(string $channel, string $message): mixed {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function pubsub(string $command, mixed $arg = null): mixed {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function punsubscribe(array $patterns): array|false {}
2022-02-09 08:14:58 +01:00
/** @return false|string|Redis */
2023-01-09 14:12:39 +01:00
public function rPop(string $key) {}
2022-02-09 08:14:58 +01:00
/** @return false|string|Redis */
2023-01-09 14:12:39 +01:00
public function randomKey() {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function rawcommand(string $command, mixed ...$args): mixed {}
2022-02-09 08:14:58 +01:00
/** @return bool|Redis */
2023-01-09 14:12:39 +01:00
public function rename(string $key_src, string $key_dst) {}
2022-02-09 08:14:58 +01:00
/** @return bool|Redis */
2023-01-09 14:12:39 +01:00
public function renameNx(string $key_src, string $key_dst) {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function restore(string $key, int $timeout, string $value): bool {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function role(): mixed {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function rpoplpush(string $src, string $dst): Redis|string|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function sAdd(string $key, string $value, mixed ...$other_values): Redis|int|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function sAddArray(string $key, array $values): int {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function sDiff(string $key, string ...$other_keys): Redis|array|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function sDiffStore(string $dst, string $key, string ...$other_keys): Redis|int|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function sInter(array|string $key, string ...$other_keys): Redis|array|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function sInterStore(array|string $key, string ...$other_keys): Redis|int|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function sMembers(string $key): Redis|array|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function sMisMember(string $key, string $member, string ...$other_members): array|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function sMove(string $src, string $dst, string $value): Redis|bool {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function sPop(string $key, int $count = 0): Redis|string|array|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function sRandMember(string $key, int $count = 0): Redis|string|array|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function sUnion(string $key, string ...$other_keys): Redis|array|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function sUnionStore(string $dst, string $key, string ...$other_keys): Redis|int|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function save(): bool {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function scan(?int &$iterator, ?string $pattern = null, int $count = 0, string $type = NULL): array|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function scard(string $key): Redis|int|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function script(string $command, mixed ...$args): mixed {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function select(int $db): bool {}
2022-02-09 08:14:58 +01:00
/** @return bool|Redis */
2023-01-09 14:12:39 +01:00
public function set(string $key, string $value, mixed $opt = NULL) {}
2022-02-09 08:14:58 +01:00
/** @return false|int|Redis */
2023-01-09 14:12:39 +01:00
public function setBit(string $key, int $idx, bool $value) {}
2022-02-09 08:14:58 +01:00
/** @return false|int|Redis */
2023-01-09 14:12:39 +01:00
public function setRange(string $key, int $start, string $value) {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function setOption(int $option, mixed $value): bool {}
2022-02-09 08:14:58 +01:00
/** @return bool|Redis */
2023-01-09 14:12:39 +01:00
public function setex(string $key, int $expire, string $value) {}
2022-02-09 08:14:58 +01:00
/** @return bool|array|Redis */
2023-01-09 14:12:39 +01:00
public function setnx(string $key, string $value) {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function sismember(string $key, string $value): Redis|bool {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function slaveof(string $host = null, int $port = 6379): bool {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function slowlog(string $mode, int $option = 0): mixed {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function sort(string $key, array $options = null): mixed {}
2022-02-09 08:14:58 +01:00
/**
* @deprecated
*/
2023-01-09 14:12:39 +01:00
public function sortAsc(string $key, ?string $pattern = null, mixed $get = null, int $offset = -1, int $count = -1, ?string $store = null): array {}
2022-02-09 08:14:58 +01:00
/**
* @deprecated
*/
2023-01-09 14:12:39 +01:00
public function sortAscAlpha(string $key, ?string $pattern = null, mixed $get = null, int $offset = -1, int $count = -1, ?string $store = null): array {}
2022-02-09 08:14:58 +01:00
/**
* @deprecated
*/
2023-01-09 14:12:39 +01:00
public function sortDesc(string $key, ?string $pattern = null, mixed $get = null, int $offset = -1, int $count = -1, ?string $store = null): array {}
2022-02-09 08:14:58 +01:00
/**
* @deprecated
*/
2023-01-09 14:12:39 +01:00
public function sortDescAlpha(string $key, ?string $pattern = null, mixed $get = null, int $offset = -1, int $count = -1, ?string $store = null): array {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function srem(string $key, string $value, mixed ...$other_values): Redis|int|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function sscan(string $key, int &$iterator, ?string $pattern = null, int $count = 0): array|false {}
2022-02-09 08:14:58 +01:00
/** @return false|int|Redis */
2023-01-09 14:12:39 +01:00
public function strlen(string $key) {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function subscribe(string $channel, string ...$other_channels): array|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function swapdb(string $src, string $dst): bool {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function time(): array|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function ttl(string $key): Redis|int|false {}
2022-02-09 08:14:58 +01:00
/** @return false|int|Redis */
2023-01-09 14:12:39 +01:00
public function type(string $key) {}
2022-02-09 08:14:58 +01:00
/**
* @return false|int|Redis
2022-02-09 08:14:58 +01:00
*/
2023-01-09 14:12:39 +01:00
public function unlink(array|string $key, string ...$other_keys) {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function unsubscribe(string $channel, string ...$other_channels): array|false {}
2022-02-09 08:14:58 +01:00
/** @return bool|Redis */
2023-01-09 14:12:39 +01:00
public function unwatch() {}
2022-02-09 08:14:58 +01:00
/**
* @return bool|Redis
*/
2023-01-09 14:12:39 +01:00
public function watch(array|string $key, string ...$other_keys) {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function wait(int $count, int $timeout): int|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function xack(string $key, string $group, array $ids): int|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function xadd(string $key, string $id, array $values, int $maxlen = 0, bool $approx = false): string|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function xclaim(string $key, string $group, string $consumer, int $min_iddle, array $ids, array $options): string|array|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function xdel(string $key, array $ids): Redis|int|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function xgroup(string $operation, string $key = null, string $arg1 = null, string $arg2 = null, bool $arg3 = false): mixed {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function xinfo(string $operation, ?string $arg1 = null, ?string $arg2 = null, int $count = -1): mixed {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function xlen(string $key): int {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function xpending(string $key, string $group, string $start = null, string $end = null, int $count = -1, string $consumer = null): Redis|array|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function xrange(string $key, string $start, string $end, int $count = -1): bool|array {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function xread(array $streams, int $count = -1, int $block = -1): bool|array {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function xreadgroup(string $group, string $consumer, array $streams, int $count = 1, int $block = 1): bool|array {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function xrevrange(string $key, string $start, string $end, int $count = -1): bool|array {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function xtrim(string $key, int $maxlen, bool $approx = false): int {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function zAdd(string $key, array|float $score_or_options, mixed ...$more_scores_and_mems): Redis|int|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function zCard(string $key): Redis|int|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function zCount(string $key, string $start , string $end): Redis|int|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function zIncrBy(string $key, float $value, mixed $member): Redis|float|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function zLexCount(string $key, string $min, string $max): Redis|int|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function zMscore(string $key, string $member, string ...$other_members): array|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function zPopMax(string $key, int $value = null): array|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function zPopMin(string $key, int $value = null): array|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function zRange(string $key, int $start, int $end, mixed $scores = null): Redis|array|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function zRangeByLex(string $key, string $min, string $max, int $offset = -1, int $count = -1): array|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function zRangeByScore(string $key, string $start, string $end, array $options = []): Redis|array|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function zRandMember(string $key, array $options = null): string|array|false {}
2023-01-09 14:12:39 +01:00
public function zRank(string $key, mixed $member): Redis|int|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function zRem(mixed $key, mixed $member, mixed ...$other_members): Redis|int|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function zRemRangeByLex(string $key, string $min, string $max): int|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function zRemRangeByRank(string $key, int $start, int $end): Redis|int|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function zRemRangeByScore(string $key, string $start, string $end): Redis|int|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function zRevRange(string $key, int $start, int $end, mixed $scores = null): Redis|array|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function zRevRangeByLex(string $key, string $min, string $max, int $offset = -1, int $count = -1): array|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function zRevRangeByScore(string $key, string $start, string $end, array $options = []): array|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function zRevRank(string $key, mixed $member): Redis|int|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function zScore(string $key, mixed $member): Redis|float|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function zdiff(array $keys, array $options = null): array|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function zdiffstore(string $dst, array $keys, array $options = null): int {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function zinter(array $keys, ?array $weights = null, ?array $options = null): Redis|array|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function zinterstore(string $dst, array $keys, ?array $weights = null, ?string $aggregate = null): Redis|int|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function zscan(string $key, ?int &$iterator, ?string $pattern = null, int $count = 0): bool|array {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function zunion(array $keys, ?array $weights = null, ?array $options = null): Redis|array|false {}
2022-02-09 08:14:58 +01:00
2023-01-09 14:12:39 +01:00
public function zunionstore(string $dst, array $keys, ?array $weights = NULL, ?string $aggregate = NULL): Redis|int|false {}
2022-02-09 08:14:58 +01:00
}