Inherited by Doctrine_Cache_Driver.
Definition at line 34 of file Interface.php.
| Doctrine_Cache_Interface::contains |
( |
|
$id | ) |
|
Test if a cache record exists for the passed id
- Parameters
-
- Returns
- mixed false (a cache is not available) or "last modified" timestamp (int) of the available cache record
| Doctrine_Cache_Interface::delete |
( |
|
$id | ) |
|
Remove a cache record
- Parameters
-
- Returns
- boolean true if no problem
| Doctrine_Cache_Interface::fetch |
( |
|
$id, |
|
|
|
$testCacheValidity = true |
|
) |
| |
Fetch a cache record from this cache driver instance
- Parameters
-
| string | $id | cache id |
| boolean | $testCacheValidity | if set to false, the cache validity won't be tested |
- Returns
- mixed Returns either the cached data or false
| Doctrine_Cache_Interface::save |
( |
|
$id, |
|
|
|
$data, |
|
|
|
$lifeTime = false |
|
) |
| |
Save a cache record and add the key to the index of cached keys
- Parameters
-
| string | $id | cache id |
| string | $data | data to cache |
| int | $lifeTime | if != false, set a specific lifetime for this cache record (null => infinite lifeTime) |
- Returns
- boolean true if no problem
The documentation for this interface was generated from the following file: