diff options
Diffstat (limited to 'redis_sentinel.stub.php')
-rw-r--r-- | redis_sentinel.stub.php | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/redis_sentinel.stub.php b/redis_sentinel.stub.php index 11309c0b..34394ee6 100644 --- a/redis_sentinel.stub.php +++ b/redis_sentinel.stub.php @@ -6,23 +6,33 @@ class RedisSentinel { public function __construct(string $host, int $port = 26379, float $timeout = 0, mixed $persistent = NULL, int $retry_interval = 0, float $read_timeout = 0); - public function ckquorum(string $master): bool; + /** @return bool|RedisSentinel */ + public function ckquorum(string $master); - public function failover(string $master): bool; + /** @return bool|RedisSentinel */ + public function failover(string $master); - public function flushconfig(): bool; + /** @return bool|RedisSentinel */ + public function flushconfig(); - public function getMasterAddrByName(string $master): array|false; + /** @return array|bool|RedisSentinel */ + public function getMasterAddrByName(string $master); - public function master(string $master): array|false; + /** @return array|bool|RedisSentinel */ + public function master(string $master); - public function masters(): array|false; + /** @return array|bool|RedisSentinel */ + public function masters(): array; - public function ping(): bool; + /** @return bool|RedisSentinel */ + public function ping(); - public function reset(string $pattern): bool; + /** @return bool|RedisSentinel */ + public function reset(string $pattern); - public function sentinels(string $master): array|false; + /** @return array|bool|RedisSentinel */ + public function sentinels(string $master); - public function slaves(string $master): array|false; + /** @return array|bool|RedisSentinel */ + public function slaves(string $master); } |