|
Fat-Free Framework
3.1.0 API Reference
|
Cache Class Reference
Cache engine. More...
Inheritance diagram for Cache:
Public Member Functions | |
| exists ($key, &$val=NULL) | |
| set ($key, $val, $ttl=0) | |
| get ($key) | |
| clear ($key) | |
| reset ($suffix=NULL, $lifetime=0) | |
| load ($dsn) | |
| __construct ($dsn=FALSE) | |
Public Attributes | |
| $prefix | |
| Prefix for cache entries. | |
| $ref | |
| MemCache object. | |
Protected Attributes | |
| $dsn | |
| Cache DSN. | |
Additional Inherited Members | |
Static Public Member Functions inherited from Prefab | |
| static | instance () |
Detailed Description
Cache engine.
Constructor & Destructor Documentation
| Cache::__construct | ( | $dsn = FALSE) |
Class constructor
- Returns
- object
- Parameters
-
$dsn bool|string
Member Function Documentation
| Cache::clear | ( | $key) |
Delete cache entry
- Returns
- bool
- Parameters
-
$key string
| Cache::exists | ( | $key, | |
| & | $val = NULL |
||
| ) |
Return timestamp and TTL of cache entry or FALSE if not found
- Returns
- float|FALSE
- Parameters
-
$key string $val mixed
| Cache::get | ( | $key) |
Retrieve value of cache entry
- Returns
- mixed|FALSE
- Parameters
-
$key string
| Cache::load | ( | $dsn) |
Load/auto-detect cache backend
- Returns
- string
- Parameters
-
$dsn bool|string
| 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:
- base.php
Generated on Mon Aug 19 2013 21:27:46 for Fat-Free Framework by
1.8.4
Static Public Member Functions inherited from