-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
redis_sentinel.stub.php
44 lines (30 loc) · 1.01 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
44
<?php
/**
* @generate-function-entries
* @generate-legacy-arginfo
* @generate-class-entries
*/
class RedisSentinel {
public function __construct(?array $options = null);
/** @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 int|RedisSentinel */
public function reset(string $pattern);
/** @return array|bool|RedisSentinel */
public function sentinels(string $master);
/** @return array|bool|RedisSentinel */
public function slaves(string $master);
}