\Yurun\Swoole\SharedMemory\StoreKV

Summary

Methods
Properties
Constants
set()
get()
remove()
exists()
clear()
count()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$data
N/A

Properties

$data

$data : array

存储的数据

Type

array

Methods

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\Store\iont

获取总的存储数据条数

Returns

\Yurun\Swoole\SharedMemory\Store\iont