\Imi\RedisSyncRedisResource

Summary

Methods
Properties
Constants
__construct()
getPool()
hashCode()
open()
close()
getInstance()
reset()
checkState()
No public properties found
No constants found
No protected methods found
$hashCode
N/A
No private methods found
$pool
$redis
$config
N/A

Properties

$hashCode

$hashCode : string

hashCode

Type

string

$redis

$redis : \Redis

db对象

Type

\Redis

$config

$config : array

连接配置

Type

array

Methods

hashCode()

hashCode() 

open()

open(  $callback = null) : boolean

打开

Parameters

$callback

Returns

boolean

close()

close() : void

关闭

getInstance()

getInstance() : mixed

获取对象实例

Returns

mixed

reset()

reset() : void

重置资源,当资源被使用后重置一些默认的设置

checkState()

checkState() : boolean

检查资源是否可用

Returns

boolean