\Imi\Server\ConnectContext\StoreHandlerIHandler

连接上下文存储处理器

Summary

Methods
Constants
read()
save()
destroy()
delayDestroy()
exists()
lock()
unlock()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

read()

read(string  $key) : array

读取数据

Parameters

string $key

Returns

array

save()

save(string  $key, array  $data) : void

保存数据

Parameters

string $key
array $data

destroy()

destroy(string  $key) : void

销毁数据

Parameters

string $key

delayDestroy()

delayDestroy(string  $key, integer  $ttl) : void

延迟销毁数据

Parameters

string $key
integer $ttl

exists()

exists(string  $key) : void

数据是否存在

Parameters

string $key

lock()

lock(string  $key, callable  $callable = null) : boolean

加锁

Parameters

string $key
callable $callable

Returns

boolean

unlock()

unlock() : boolean

解锁

Returns

boolean