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 26 of file FileCache.php.
Inheritance diagram for FileCache:
Public Member Functions | |
__construct ($cacheDir=null) | |
setCacheDir ($cacheDir) | |
exists ($section, $key) | |
getDate ($section, $key) | |
get ($section, $key) | |
put ($section, $key, $value, $lifetime=null) | |
clear ($section) | |
clearAll () | |
Constructor & Destructor Documentation
◆ __construct()
__construct | ( | $cacheDir = null | ) |
Member Function Documentation
◆ setCacheDir()
setCacheDir | ( | $cacheDir | ) |
Set the cache directory (defaults to WCMF_BASE/app/cache/ if not given).
If not existing, the directory will be created relative to WCMF_BASE.
- Parameters
-
$cacheDir String
Definition at line 47 of file FileCache.php.
◆ exists()
exists | ( | $section, | |
$key | |||
) |
◆ getDate()
getDate | ( | $section, | |
$key | |||
) |
◆ get()
get | ( | $section, | |
$key | |||
) |
◆ put()
put | ( | $section, | |
$key, | |||
$value, | |||
$lifetime = null |
|||
) |
◆ clear()
clear | ( | $section | ) |
◆ clearAll()
clearAll | ( | ) |