# \PG\MSF\ProxyRedisProxyMasterSlave

Class RedisProxyMasterSlave

## Summary

Methods
Properties
Constants
__construct()
startCheck()
handle()
check()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$name
$pools
$master
$slaves
$goodPools
$readOperation
N/A

File
  Proxy/RedisProxyMasterSlave.php
Package
  MSF\Proxy
Class hierarchy
  \PG\MSF\Proxy\RedisProxyMasterSlave
Implements
  \PG\MSF\Proxy\IProxy

## Tags

None found

## Properties

### $name

    $name : string

#### Type

string — 代理标识，它代表一个Redis集群

#

## Tags

None found

### $pools

    $pools : array

#### Type

array — 连接池列表，数字索引的连接池名称列表

#

## Tags

None found

### $master

    $master : string

#### Type

string — Redis集群中主节点的连接池名称

#

## Tags

None found

### $slaves

    $slaves : array

#### Type

array — Redis集群中从节点的连接池名称列表

#

## Tags

None found

### $goodPools

    $goodPools : array

#### Type

array — 通过探活检测的连接池列表

#

## Tags

None found

### $readOperation

    $readOperation : array

#### Type

array — 读的Redis指令列表

#

## Tags

None found

## Methods

### __construct()

    __construct(string  $name, array  $config)

RedisProxyMasterSlave constructor.

#### Parameters

string | $name | 代理标识
array | $config | 配置对象

#

## Tags

None found

### startCheck()

    startCheck() : boolean

启动时检测Redis集群状态

#### Returns

boolean

#

## Tags

None found

### handle()

    handle(string  $method, array  $arguments) : mixed

发送异步Redis请求

#### Parameters

string | $method | Redis指令
array | $arguments | Redis指令参数

#### Returns

mixed

#

## Tags

None found

### check()

    check() : boolean

定时检测

#### Returns

boolean

#

## Tags

None found

### RedisProxyMasterSlave.php