Inheritance diagram for EasyCache:
Definition at line 140 of file cache.inc.php.
Public Member Functions | |
__construct ($life=null) | |
create an EasyCache object. | |
get ($key) | |
get data from the cache | |
set ($key, $data) | |
set the data to the cache | |
delete ($key) | |
delete data from the cache | |
flush () | |
completely wipe the cache and start over | |
Static Public Member Functions | |
markCacheHit ($key, $type= 'get') | |
mark a hit in the cache. | |
drawCacheStats () | |
use then when you've enabled cache tracking. | |
Static Public Attributes | |
$life = 3600 | |
how long do we store the data for once we set it?) | |
$hits = 0 | |
this is used to track how many cache hits we do per page. | |
Static Private Attributes | |
$keys = array() | |
if we have cache tracking on, this will contain all the keys hit. |
|
create an EasyCache object. this object will do the actual caching.
Definition at line 162 of file cache.inc.php. |
|
delete data from the cache
Reimplemented in EasyMemCache, EasyFileCache, EasyDBCache, and NoCache. |
|
use then when you've enabled cache tracking. it will spit out a list of keys that have been hit, and link them to the Main module where you can view them, and/or delete them. Definition at line 227 of file cache.inc.php. |
|
completely wipe the cache and start over
Reimplemented in EasyMemCache, EasyFileCache, EasyDBCache, and NoCache. |
|
get data from the cache
Reimplemented in EasyMemCache, EasyFileCache, EasyDBCache, and NoCache. |
|
mark a hit in the cache. if 'bj_track_cache' is set in the config, it will also track which keys are hit.
Definition at line 209 of file cache.inc.php. References Config::get(). |
|
set the data to the cache
Reimplemented in EasyMemCache, EasyFileCache, EasyDBCache, and NoCache. |
|
this is used to track how many cache hits we do per page.
Definition at line 150 of file cache.inc.php. |
|
if we have cache tracking on, this will contain all the keys hit.
Definition at line 155 of file cache.inc.php. |
|
how long do we store the data for once we set it?)
Definition at line 145 of file cache.inc.php. |