|
| __construct () |
|
| store ($tableName, $condition, $result) |
| Caches the given data with the given key (tableName+md5(condition)). More...
|
|
| fetch ($tableName, $condition) |
| Fetches data stored for the given condition in table. More...
|
|
| delete ($tableName, $condition) |
| Deletes the entry corresponding to $condition apply to $table. More...
|
|
| clear ($matches="") |
|
| remove ($key) |
|
| setActive ($value=true) |
|
Definition at line 8 of file DbCache.php.
◆ __construct()
◆ clear()
◆ delete()
delete |
( |
|
$tableName, |
|
|
|
$condition |
|
) |
| |
|
abstract |
Deletes the entry corresponding to $condition apply to $table.
- Parameters
-
string | $tableName | |
string | $condition | |
- Returns
- boolean true if the entry is deleted
◆ fetch()
fetch |
( |
|
$tableName, |
|
|
|
$condition |
|
) |
| |
|
abstract |
Fetches data stored for the given condition in table.
- Parameters
-
string | $tableName | |
string | $condition | |
- Returns
- mixed the cached datas
◆ getKey()
◆ remove()
◆ setActive()
setActive |
( |
|
$value = true | ) |
|
◆ store()
store |
( |
|
$tableName, |
|
|
|
$condition, |
|
|
|
$result |
|
) |
| |
|
abstract |
Caches the given data with the given key (tableName+md5(condition)).
- Parameters
-
string | $tableName | |
string | $condition | |
array | $result | the datas to store |
◆ $active
◆ $cache
◆ $config
The documentation for this class was generated from the following file: