PHP Class Swoole\Component\Redis

ファイルを表示 Open project: matyhtf/swoole_framework Class Usage Examples

Public Properties

Property Type Description
$config
$prefix

Protected Properties

Property Type Description
$_redis Redis

Public Methods

Method Description
__call ( $method, $args = [] )
__construct ( $config )
connect ( )
getIncreaseId ( $appKey, integer $init_id = 1 ) : boolean | integer 获取自增ID
syncFromAof ( $file, $dstRedisServer, integer $seek ) : boolean
write ( $fp, $content )

Method Details

__call() public method

public __call ( $method, $args = [] )

__construct() public method

public __construct ( $config )

connect() public method

public connect ( )

getIncreaseId() public method

获取自增ID
public getIncreaseId ( $appKey, integer $init_id = 1 ) : boolean | integer
$appKey
$init_id integer
return boolean | integer

syncFromAof() static public method

static public syncFromAof ( $file, $dstRedisServer, integer $seek ) : boolean
$file
$dstRedisServer
$seek integer
return boolean

write() static public method

static public write ( $fp, $content )

Property Details

$_redis protected_oe property

protected Redis,Swoole\Component $_redis
return Redis

$config public_oe property

public $config

$prefix public_oe static_oe property

public static $prefix