\libsCache_factory

Summary

Methods
Properties
Constants
instance()
get()
set()
remove()
runUpdate()
No public properties found
No constants found
No protected methods found
$instance
N/A
No private methods found
No private properties found
N/A

Properties

$instance

$instance

Methods

instance()

instance(mixed  $options = []) : static

Parameters

mixed $options

Returns

static —

get()

get(\libs\type  $name) : null

获取缓存

Parameters

\libs\type $name

缓存名称

Returns

null —

set()

set(string  $name, \libs\type  $value, \libs\type  $expire = null) : bool

写入缓存

Parameters

string $name

缓存变量名

\libs\type $value

存储数据

\libs\type $expire

有效时间(秒)

Returns

bool —

remove()

remove(string  $name) : bool

删除缓存

Parameters

string $name

缓存变量名

Returns

bool —

runUpdate()

runUpdate(\libs\type  $name) : bool

更新缓存

Parameters

\libs\type $name

缓存key

Returns

bool —