PHP Class Overtrue\PHPLint\Cache

Show file Open project: overtrue/phplint Class Usage Examples

Protected Properties

Property Type Description
$filename string

Public Methods

Method Description
exists ( ) : boolean Check cache exists.
get ( ) : mixed Fetch cache.
getFilename ( ) : string Return cache filename.
isCached ( ) : boolean Alias if exists();.
put ( mixed $contents ) Set cache.

Method Details

exists() public static method

Check cache exists.
public static exists ( ) : boolean
return boolean

get() public static method

Fetch cache.
public static get ( ) : mixed
return mixed

getFilename() public static method

Return cache filename.
public static getFilename ( ) : string
return string

isCached() public static method

Alias if exists();.
public static isCached ( ) : boolean
return boolean

put() public static method

Set cache.
public static put ( mixed $contents )
$contents mixed

Property Details

$filename protected static property

protected static string $filename
return string