\Yurun\Swoole\SharedMemory\Client\StoreKV

Summary

Methods
Properties
Constants
__construct()
getClient()
setClient()
set()
get()
remove()
exists()
clear()
count()
No public properties found
No constants found
doCall()
No protected properties found
N/A
No private methods found
$client
N/A

Properties

$client

$client : \Yurun\Swoole\SharedMemory\Client\Client

客户端

Type

\Yurun\Swoole\SharedMemory\Client\Client

Methods

__construct()

__construct(\Yurun\Swoole\SharedMemory\Client\Client  $client) 

Parameters

\Yurun\Swoole\SharedMemory\Client\Client $client

getClient()

getClient() : \Yurun\Swoole\SharedMemory\Client\Client

Get 客户端

Returns

\Yurun\Swoole\SharedMemory\Client\Client

setClient()

setClient(\Yurun\Swoole\SharedMemory\Client\Client  $client) : self

Set 客户端

Parameters

\Yurun\Swoole\SharedMemory\Client\Client $client

客户端

Returns

self

set()

set(string  $name, mixed  $value) : boolean

写入值

Parameters

string $name
mixed $value

Returns

boolean

get()

get(string  $name, mixed  $default = null) : mixed

获取值

Parameters

string $name
mixed $default

Returns

mixed

remove()

remove(string  $name) : boolean

移除值

Parameters

string $name

Returns

boolean

exists()

exists(string  $name) : boolean

是否存在

Parameters

string $name

Returns

boolean

clear()

clear() : void

清除

count()

count() : \Yurun\Swoole\SharedMemory\Client\Store\iont

获取总的存储数据条数

Returns

\Yurun\Swoole\SharedMemory\Client\Store\iont