Cache defines the interface for cache implementations.
Caches are divided into different sections, which store key value pairs.
- Author
- ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m
Definition at line 21 of file Cache.php.
exists |
( |
|
$section, |
|
|
|
$key |
|
) |
| |
Check if a key exists in the specified cache.
- Parameters
-
$section | The caching section |
$key | The cache key |
- Returns
- boolean
Implemented in FileCache, and NullCache.
Get a value from the specified cache.
- Parameters
-
$section | The caching section |
$key | The cache key |
- Returns
- Mixed
Implemented in FileCache, and NullCache.
put |
( |
|
$section, |
|
|
|
$key, |
|
|
|
$value |
|
) |
| |
Store a value in the specified cache.
- Parameters
-
$section | The caching section |
$key | The key |
$value | The value |
Implemented in FileCache, and NullCache.
Clear the given cache section.
The wildcard char '*' may be added to the section name in order to clear all matching sections.
- Parameters
-
$section | The caching section |
Implemented in FileCache, and NullCache.