\SwooleRedis

异步Redis客户端

Summary

Methods
Properties
Constants
on()
connect()
close()
get()
set()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

on()

on(  $event_name, callable  $callback) 

注册事件回调函数

Parameters

$event_name
callable $callback

connect()

connect(string  $host, integer  $port, callable  $callback) 

连接到服务器

Parameters

string $host
integer $port
callable $callback

close()

close() 

关闭连接

get()

get(  $key, callable  $callback) 

获取KEY值

Parameters

$key
callable $callback

set()

set(  $key,   $value, callable  $callback) 

将当前值设置为指定的数字

Parameters

$key
$value
callable $callback