Cache
in package
Class Cache.
Table of Contents
Properties
- $filename : string
Methods
- exists() : bool
- Check cache exists.
- get() : mixed
- Fetch cache.
- getFilename() : string
- Return cache filename.
- isCached() : bool
- Alias if exists();.
- put() : int
- Set cache.
- setFilename() : mixed
- Set cache filename.
- makeFolderForFilename() : mixed
- Try to create the folder recursively where the cache file is stored.
Properties
$filename
protected
static string
$filename
= '.phplint-cache'
Methods
exists()
Check cache exists.
public
static exists() : bool
Return values
boolget()
Fetch cache.
public
static get() : mixed
getFilename()
Return cache filename.
public
static getFilename() : string
Return values
stringisCached()
Alias if exists();.
public
static isCached() : bool
Return values
boolput()
Set cache.
public
static put(mixed $contents) : int
Parameters
- $contents : mixed
Return values
intsetFilename()
Set cache filename.
public
static setFilename(string $filename) : mixed
Parameters
- $filename : string
makeFolderForFilename()
Try to create the folder recursively where the cache file is stored.
private
static makeFolderForFilename() : mixed
It depends on current value of static::getFilename().