Class: Cache
Source Location: /PHP_CodeSniffer-3.0.0RC2/src/Util/Cache.php
Function for caching between runs.
Author(s):
Copyright:
- 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
Inherited Variables
Inherited Methods
Class Details
[line
17]
Function for caching between runs.
Method Detail
get [line 279]
mixed get(
[string
$key = null])
Retrieves a single entry from the cache.
Parameters:
string
$key
—
The key of the data to get. If NULL, everything in the cache is returned.
getSize [line 319]
Retrieves the number of cache entries.
load [line 43]
void load(
Ruleset
$ruleset, Config
$config)
Loads existing cache data for the run, if any.
Parameters:
\PHP_CodeSniffer\Ruleset
$ruleset
—
The ruleset used for the run.
\PHP_CodeSniffer\Config
$config
—
The config data for the run.
save [line 264]
Saves the current cache to the filesystem.
set [line 303]
void set(
string
$key, mixed
$value)
Retrieves a single entry from the cache.
Parameters:
string
$key
—
The key of the data to set. If NULL, sets the entire cache.
mixed
$value
—
The value to set.
Documentation generated on 2019年3月11日 14:49:28 -0400 by
phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.