A cache driver to cache files using the filesystem.
This driver stores files in the CMSMS TMP_CACHE location. Supports read, and write locking a settable cache lifetime, md5 encoded keys and groups so that filenames cannot be easily determined, and automatic cleaning.
package |
CMS |
---|---|
license |
GPL |
since | 2.0 |
author |
Robert Campbell |
__construct(string $opts)
Accepts an associative array of options as follows: lifetime => seconds (default 3600) locking => boolean (default false) cache_dir => string (default TMP_CACHE_LOCATION) auto_cleaning => boolean (default false) blocking => boolean (default false) grouop => string (no default)
string
$optsget(string $key, string $group = '') : mixed
string
$keystring
$group mixed
clear(string $group = '')
If the $group parameter is not specified, use the current group
string
$groupexists(string $key, string $group = '') : boolean
string
$keystring
$group boolean
erase(string $key, string $group = '')
If the $group parameter is not specified, use the current group
string
$keystring
$groupset(string $key, mixed $value, string $group = '')
string
$keymixed
$valuestring
$groupset_group(string $group)
string
$group