|
Doctrine 1.2.4
|
Inherits Doctrine_Cache_Driver.
Public Member Functions | |
| __construct ($options=array()) | |
| contains ($id) | |
| createTable () | |
| delete ($id) | |
| deleteAll () | |
| deleteByPrefix ($prefix) | |
| deleteByRegex ($regex) | |
| deleteBySuffix ($suffix) | |
| fetch ($id, $testCacheValidity=true) | |
| getConnection () | |
| getOption ($option) | |
| save ($id, $data, $lifeTime=false) | |
| setOption ($option, $value) | |
Protected Member Functions | |
| _doContains ($id) | |
| _doDelete ($id) | |
| _doFetch ($id, $testCacheValidity=true) | |
| _doSave ($id, $data, $lifeTime=false, $saveKey=true) | |
| _doSave ($id, $data, $lifeTime=false) | |
| _getCacheKeys () | |
| _getKey ($id) | |
| _hex2bin ($hex) | |
| Doctrine_Cache_Db::__construct | ( | $options = array() | ) |
Configure Database cache driver. Specify instance of Doctrine_Connection and tableName to store cache in
| array | $_options | an array of options |
Definition at line 42 of file Db.php.
|
protected |
Test if a cache record exists for the passed id
| string | $id | cache id |
Definition at line 101 of file Db.php.
|
protected |
Remove a cache record directly. This method is implemented by the cache drivers and used in Doctrine_Cache_Driver::delete()
| string | $id | cache id |
Definition at line 162 of file Db.php.
|
protected |
Fetch a cache record from this cache driver instance
| string | $id | cache id |
| boolean | $testCacheValidity | if set to false, the cache validity won't be tested |
Definition at line 77 of file Db.php.
|
protected |
Save a cache record directly. This method is implemented by the cache drivers and used in Doctrine_Cache_Driver::save()
| string | $id | cache id |
| string | $data | data to cache |
| int | $lifeTime | if != false, set a specific lifetime for this cache record (null => infinite lifeTime) |
Definition at line 123 of file Db.php.
|
abstractprotectedinherited |
Save a cache record directly. This method is implemented by the cache drivers and used in Doctrine_Cache_Driver::save()
| string | $id | cache id |
| string | $data | data to cache |
| int | $lifeTime | if != false, set a specific lifetime for this cache record (null => infinite lifeTime) |
|
protected |
Fetch an array of all keys stored in cache
Definition at line 222 of file Db.php.
|
protectedinherited |
Get the hash key passing its suffix
| string | $id | The hash key suffix |
Definition at line 226 of file Driver.php.
|
protected |
|
inherited |
Test if a cache record exists for the passed id
| string | $id | cache id |
Definition at line 101 of file Driver.php.
| Doctrine_Cache_Db::createTable | ( | ) |
Create the cache table
Definition at line 173 of file Db.php.
|
inherited |
Remove a cache record
Note: This method accepts wildcards with the * character
| string | $id | cache id |
Definition at line 129 of file Driver.php.
|
inherited |
Delete all cache entries from the cache driver
Definition at line 208 of file Driver.php.
|
inherited |
Delete cache entries where the key has the passed prefix
| string | $prefix |
Definition at line 167 of file Driver.php.
|
inherited |
Delete cache entries where the key matches a PHP regular expressions
| string | $regex |
Definition at line 146 of file Driver.php.
|
inherited |
Delete cache entries where the key has the passed suffix
| string | $suffix |
Definition at line 188 of file Driver.php.
|
inherited |
Fetch a cache record from this cache driver instance
| string | $id | cache id |
| boolean | $testCacheValidity | if set to false, the cache validity won't be tested |
Definition at line 89 of file Driver.php.
| Doctrine_Cache_Db::getConnection | ( | ) |
Get the connection object associated with this cache driver
Definition at line 65 of file Db.php.
|
inherited |
Get value of option
| mixed | $option | the option name |
Definition at line 73 of file Driver.php.
|
inherited |
Save some string datas into a cache record
| string | $id | cache id |
| string | $data | data to cache |
| int | $lifeTime | if != false, set a specific lifetime for this cache record (null => infinite lifeTime) |
Definition at line 115 of file Driver.php.
|
inherited |
Set option name and value
| mixed | $option | the option name |
| mixed | $value | option value |
Definition at line 58 of file Driver.php.