1.0 Doctrine_Cache_Db
Doctrine Cache Db
Database cache driver
Inheritence
Doctrine_Cache_Db < Doctrine_Cache_Driver
Method Summary
| Returns | Name | Description |
|---|---|---|
| mixed | contains | |
| integer | count | |
| createTable | ||
| boolean | delete | |
| deleteAll | $return bool true on success, false on failure | |
| string | fetch | |
| getConnection | ||
| boolean | save | Note : $data is always saved as a string |
| __construct |
Method Details
-
$id cache id (mixed) contains($id)
Test if a cache is available or not (for the given id)
Doctrine_Cache_Db
-
(integer) count()
count returns the number of cached elements
-
createTable()
Create the cache table
-
$id cache id (boolean) delete($id)
Remove a cache record
Doctrine_Cache_Db
-
deleteAll()
Removes all cache records
$return bool true on success, false on failure
-
$id cache id $testCacheValidity if set to false, the cache validity won't be tested (string) fetch($id, $testCacheValidity = true)
Test if a cache is available for the given id and (if yes) return it (false else).
Doctrine_Cache_Db
-
getConnection()
Get the connection object associated with this cache driver
-
$id cache id $data data to cache $lifeTime if != false, set a specific lifetime for this cache record (null => infinite lifeTime) (boolean) save($id, $data, $lifeTime = false)
Save some string datas into a cache record
Note : $data is always saved as a string
Doctrine_Cache_Db
-
$_options an array of options __construct($options, $_options)
Configure Database cache driver. Specify instance of Doctrine_Connection and tableName to store cache in