forked from phpredis/phpredis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
redis_sentinel.stub.php
43 lines (29 loc) · 1.08 KB
/
redis_sentinel.stub.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* @generate-function-entries
* @generate-legacy-arginfo
*/
class RedisSentinel {
public function __construct(string $host, int $port = 26379, float $timeout = 0, mixed $persistent = NULL, int $retry_interval = 0, float $read_timeout = 0);
/** @return bool|RedisSentinel */
public function ckquorum(string $master);
/** @return bool|RedisSentinel */
public function failover(string $master);
/** @return bool|RedisSentinel */
public function flushconfig();
/** @return array|bool|RedisSentinel */
public function getMasterAddrByName(string $master);
/** @return array|bool|RedisSentinel */
public function master(string $master);
/** @return array|bool|RedisSentinel */
public function masters();
public function myid(): string;
/** @return bool|RedisSentinel */
public function ping();
/** @return bool|RedisSentinel */
public function reset(string $pattern);
/** @return array|bool|RedisSentinel */
public function sentinels(string $master);
/** @return array|bool|RedisSentinel */
public function slaves(string $master);
}