FileCache Class Reference
Detailed Description
FileCache provides simple caching functionality.
The cache is divided into different sections. All sections share the same base path.
Definition at line 25 of file FileCache.php.
Inheritance diagram for FileCache:
Public Member Functions | |
__construct () | |
setCacheDir ($cacheDir) | |
exists ($section, $key) | |
get ($section, $key) | |
put ($section, $key, $value) | |
clear ($section) | |
clearAll () | |
Constructor & Destructor Documentation
__construct | ( | ) |
Constructor.
Definition at line 34 of file FileCache.php.
Member Function Documentation
setCacheDir | ( | $cacheDir | ) |
Set the cache directory (defaults to session_save_path if not given).
If not existing, the directory will be created relative to WCMF_BASE.
- Parameters
-
$cacheDir String
Definition at line 43 of file FileCache.php.
exists | ( | $section, | |
$key | |||
) |
get | ( | $section, | |
$key | |||
) |
put | ( | $section, | |
$key, | |||
$value | |||
) |
clear | ( | $section | ) |
clearAll | ( | ) |