Method |
Description |
|
clear ( string $tag = null ) : boolean |
清除缓存 |
|
connect ( array $options = [], boolean | string $name = false ) : Driver |
连接缓存 |
|
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 |
自增缓存(针对数值缓存) |
|
init ( array $options = [] ) : void |
自动初始化缓存 |
|
rm ( string $name ) : boolean |
删除缓存 |
|
set ( string $name, mixed $value, integer | null $expire = null ) : boolean |
写入缓存 |
|
store ( string $name ) : Driver |
切换缓存类型 需要配置 cache.type 为 complex |
|
tag ( string $name, string | array $keys = null, boolean $overlay = false ) : Driver |
缓存标签 |
|