Method |
Description |
|
__construct ( $conf = false ) |
使用的缓存配置 默认为使用default_cache配置的参数 |
|
__construct ( bool|array $conf = false ) |
使用的缓存配置 默认为使用default_cache配置的参数 |
|
cleanDir ( string $dir ) : boolean |
清空文件夹 |
|
decrement ( string $key, integer $val = 1 ) : boolean |
自减 |
|
delete ( string $key ) : boolean |
删除缓存 |
|
get ( string $key ) : mixed |
获取缓存 |
|
getInstance ( string $key = '' ) : void |
返回实例便于操作未封装的方法 |
|
increment ( string $key, integer $val = 1 ) : boolean |
自增 |
|
set ( string $key, mixed $value, integer $expire ) : boolean |
写入缓存 |
|
truncate ( ) : boolean |
清空缓存 |
|
update ( string $key, mixed $value, integer $expire ) : boolean |
更新缓存 可以直接用set但是为了一致性操作所以做此兼容 |
|