Documentation

SRedis
in package

Table of Contents

Properties

$_configFile  : mixed
$_redis  : mixed
$engine  : mixed
$hosts  : mixed
$options  : mixed

Methods

__call()  : mixed
__callStatic()  : mixed
__construct()  : mixed
当前使用的resouce
getConfig()  : array<string|int, mixed>
setConfigFile()  : mixed
useConfig()  : array<string|int, mixed>
切换配置文件

Properties

$_configFile

private static mixed $_configFile

$engine

private static mixed $engine = ""

$hosts

private static mixed $hosts = array()

$options

private static mixed $options = array()

Methods

__call()

public __call(mixed $name, mixed $args) : mixed
Parameters
$name : mixed
$args : mixed

__callStatic()

public static __callStatic(mixed $name, mixed $args) : mixed
Parameters
$name : mixed
$args : mixed

__construct()

当前使用的resouce

public __construct(array<string|int, mixed> $hosts, array<string|int, mixed> $options[, mixed $engine = "" ]) : mixed
Parameters
$hosts : array<string|int, mixed>
$options : array<string|int, mixed>
$engine : mixed = ""

getConfig()

public static getConfig([string $zone = null ][, mixed $type = "host" ]) : array<string|int, mixed>
Parameters
$zone : string = null
$type : mixed = "host"
Return values
array<string|int, mixed>

setConfigFile()

public static setConfigFile(mixed $file) : mixed
Parameters
$file : mixed

useConfig()

切换配置文件

public static useConfig(string $zone[, mixed $type = "host" ]) : array<string|int, mixed>
Parameters
$zone : string
$type : mixed = "host"
Return values
array<string|int, mixed>

        
On this page

Search results