Cache engine.
More...
|
| $prefix |
| Prefix for cache entries.
|
|
| $ref |
| MemCache or Redis object.
|
|
Cache::__construct |
( |
|
$dsn = FALSE | ) |
|
Class constructor
- Returns
- object
- Parameters
-
Delete cache entry
- Returns
- bool
- Parameters
-
Cache::exists |
( |
|
$key, |
|
|
& |
$val = NULL |
|
) |
| |
Return timestamp and TTL of cache entry or FALSE if not found
- Returns
- array|FALSE
- Parameters
-
Retrieve value of cache entry
- Returns
- mixed|FALSE
- Parameters
-
Load/auto-detect cache backend
- Returns
- string
- Parameters
-
Cache::reset |
( |
|
$suffix = NULL , |
|
|
|
$lifetime = 0 |
|
) |
| |
Clear contents of cache backend
- Returns
- bool
- Parameters
-
$suffix | string |
$lifetime | int |
Cache::set |
( |
|
$key, |
|
|
|
$val, |
|
|
|
$ttl = 0 |
|
) |
| |
Store value in cache
- Returns
- mixed|FALSE
- Parameters
-
$key | string |
$val | mixed |
$ttl | int |
The documentation for this class was generated from the following file: