Property | Type | Description | |
---|---|---|---|
$options |
Method | Description | |
---|---|---|
__construct ( array $options = [] ) | 架构函数 | |
clear ( string $tag = null ) : boolean | 清除缓存 | |
dec ( string $name, integer $step = 1 ) : false | integer | 自减缓存(针对数值缓存) | |
get ( string $name, mixed $default = false ) : mixed | 读取缓存 | |
has ( string $name ) : boolean | 判断缓存是否存在 | |
inc ( string $name, integer $step = 1 ) : false | integer | 自增缓存(针对数值缓存) | |
rm ( string $name ) : boolean | 删除缓存 | |
set ( string $name, mixed $value, integer $expire = null ) : boolean | 写入缓存 |
Method | Description | |
---|---|---|
getCacheKey ( string $name ) : string | 取得变量的存储文件名 |
Method | Description | |
---|---|---|
init ( ) : boolean | 初始化检查 | |
unlink ( $path ) : boolean | 判断文件是否存在后,删除 |
protected getCacheKey ( string $name ) : string | ||
$name | string | 缓存变量名 |
return | string |