Inheritance diagram for EasyFileCache:
it is good if you do not have access to memcache (which is the ideal caching solution). The downside to this class is that it must look up each key individually, and you also have to include your CacheLife on gets, because there is no way to store that for the set call. it's generally not a bad option.
Definition at line 350 of file cache.inc.php.
Public Member Functions | |
__construct ($path="/tmp/EasyCache/", $life=null) | |
create our object. | |
get ($key) | |
set ($key, $data) | |
saves our data to the cache. | |
delete ($key) | |
deletes our cached data. | |
flush () | |
completely wipe the cache and start over | |
Protected Member Functions | |
isCached ($key) | |
determines if the data is still cached or not. | |
getCachePath ($key) | |
get the full path to the cached page file. | |
Private Attributes | |
$path |
|
create our object. where and how long to store it.
Definition at line 361 of file cache.inc.php. |
|
deletes our cached data.
Reimplemented from EasyCache. Definition at line 426 of file cache.inc.php. References getCachePath(). |
|
completely wipe the cache and start over
Reimplemented from EasyCache. Definition at line 436 of file cache.inc.php. References Util::shellExec(). |
|
Reimplemented from EasyCache. Definition at line 375 of file cache.inc.php. References get(), and isCached(). Referenced by get(). |
|
get the full path to the cached page file.
Definition at line 474 of file cache.inc.php. Referenced by delete(), and isCached(). |
|
determines if the data is still cached or not. checks for nonexistant as well as old/stale data. if its old, it also cleans up.
Definition at line 450 of file cache.inc.php. References getCachePath(). Referenced by get(). |
|
saves our data to the cache.
Reimplemented from EasyCache. Definition at line 414 of file cache.inc.php. References set(). Referenced by set(). |
|
Definition at line 352 of file cache.inc.php. |