PHP Class Swoole\Component\Redis

Afficher le fichier Open project: matyhtf/swoole_framework Class Usage Examples

Méthodes publiques

Свойство Type Description
$config
$prefix

Protected Properties

Свойство Type Description
$_redis Redis

Méthodes publiques

Méthode 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 méthode

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

__construct() public méthode

public __construct ( $config )

connect() public méthode

public connect ( )

getIncreaseId() public méthode

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

syncFromAof() static public méthode

static public syncFromAof ( $file, $dstRedisServer, integer $seek ) : boolean
$file
$dstRedisServer
$seek integer
Résultat boolean

write() static public méthode

static public write ( $fp, $content )

Property Details

$_redis protected_oe property

protected Redis,Swoole\Component $_redis
Résultat Redis

$config public_oe property

public $config

$prefix public_oe static_oe property

public static $prefix