FileCacheDriver
in package
implements
CacheInterface
Tags
Interfaces, Classes and Traits
- CacheInterface
- Interface CacheInterface
Table of Contents
- $cachePath : string
- 缓存文件路径
- __construct() : mixed
- del() : mixed|void
- 删除缓存
- get() : mixed
- 返回缓存文件
- set() : mixed|void
- 保存缓存
Properties
$cachePath
缓存文件路径
private
string
$cachePath
Methods
__construct()
public
__construct(string $cachePath) : mixed
Parameters
- $cachePath : string
Return values
mixed —del()
删除缓存
public
del(string $key) : mixed|void
Parameters
- $key : string
Return values
mixed|void —get()
返回缓存文件
public
get([string $key = '' ]) : mixed
Parameters
- $key : string = ''
Return values
mixed —set()
保存缓存
public
set(string $key, mixed $value) : mixed|void
Parameters
- $key : string
- $value : mixed