Cache Class Reference
Inheritance diagram for Cache:

Public Member Functions | |
| append ($string) | |
| clear () | |
| has () | |
| id ($id=null) | |
| remember ($content, $keep_for=CACHE_PAGES_FOR) | |
| restore () | |
Public Attributes | |
| $data = null | |
| $for_caching = null | |
| $id = null | |
| $useTable = 'cache' | |
Detailed Description
Definition at line 42 of file cache.php.
Member Function Documentation
| Cache::append | ( | $ | string | ) |
| Cache::clear | ( | ) |
Clears the cache database table.
- Returns:
- unknown
Definition at line 133 of file cache.php.
References Model::query().
| Cache::has | ( | ) |
Returns true if the cache data property has current (non-stale) content for given id.
- Returns:
- boolean
Definition at line 117 of file cache.php.
References Model::find().
| Cache::id | ( | $ | id = null |
) |
| Cache::remember | ( | $ | content, | |
| $ | keep_for = CACHE_PAGES_FOR | |||
| ) |
Store given content in cache database.
- Parameters:
-
string $content Content to keep in cache. int $keep_for Number of seconds to keep data in cache.
- Returns:
- boolean Success
Definition at line 95 of file cache.php.
References $data, and Model::query().
| Cache::restore | ( | ) |
Returns content from the Cache object itself, if the Cache object has a non-empty data property. Else from the database cache.
- Returns:
- unknown
Definition at line 106 of file cache.php.
References Model::find().
Member Data Documentation
| Cache::$data = null |
| Cache::$id = null |
The documentation for this class was generated from the following file:
- 1.1.x.x/cake/libs/cache.php