File: redis_sentinel.stub.php

package info (click to toggle)
php-redis 6.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,412 kB
  • sloc: ansic: 19,453; php: 8,683; xml: 1,704; sh: 261; makefile: 3
file content (44 lines) | stat: -rw-r--r-- 1,031 bytes parent folder | download
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);
}