Public Member Functions | |
__construct (array $options=array()) | |
setDirectives ($directives) | |
setOption ($name, $value) | |
getLifetime ($specificLifetime) | |
isAutomaticCleaningAvailable () | |
getTmpDir () | |
Protected Member Functions | |
_isGoodTmpDir ($dir) | |
_loggerSanity () | |
_log ($message, $priority=4) | |
Protected Attributes | |
$_directives | |
$_options = array() |
Definition at line 30 of file Backend.php.
__construct | ( | array $ | options = array() ) |
Constructor
array | $options | Associative array of options |
Zend_Cache_Exception |
Reimplemented in Zend_Cache_Backend_Apc, Zend_Cache_Backend_File, Zend_Cache_Backend_Memcached, Zend_Cache_Backend_Sqlite, Zend_Cache_Backend_TwoLevels, Zend_Cache_Backend_Xcache, Zend_Cache_Backend_ZendPlatform, Zend_Cache_Backend_ZendServer_Disk, and Zend_Cache_Backend_ZendServer_ShMem.
Definition at line 64 of file Backend.php.
_isGoodTmpDir | ( | $ | dir ) | [protected] |
Verify if the given temporary directory is readable and writable
$dir | temporary directory |
Definition at line 206 of file Backend.php.
_log | ( | $ | message, |
$ | priority = 4 |
||
) | [protected] |
Log a message at the WARN (4) priority.
string | $message |
Zend_Cache_Exception |
Definition at line 257 of file Backend.php.
_loggerSanity | ( | ) | [protected] |
Make sure if we enable logging that the Zend_Log class is available. Create a default log object if none is set.
Zend_Cache_Exception |
Definition at line 224 of file Backend.php.
getLifetime | ( | $ | specificLifetime ) |
Get the life time
if $specificLifetime is not false, the given specific life time is used else, the global lifetime is used
int | $specificLifetime |
Definition at line 123 of file Backend.php.
getTmpDir | ( | ) |
Determine system TMP directory and detect if we have read access
inspired from Zend_File_Transfer_Adapter_Abstract
Zend_Cache_Exception | if unable to determine directory |
Definition at line 152 of file Backend.php.
isAutomaticCleaningAvailable | ( | ) |
Return true if the automatic cleaning is available for the backend
DEPRECATED : use getCapabilities() instead
Reimplemented in Zend_Cache_Backend_Apc, Zend_Cache_Backend_Memcached, Zend_Cache_Backend_Test, and Zend_Cache_Backend_Xcache.
Definition at line 139 of file Backend.php.
setDirectives | ( | $ | directives ) |
Set the frontend directives
array | $directives | Assoc of directives |
Zend_Cache_Exception |
Reimplemented in Zend_Cache_Backend_Memcached, and Zend_Cache_Backend_Test.
Definition at line 78 of file Backend.php.
setOption | ( | $ | name, |
$ | value | ||
) |
Set an option
string | $name | |
mixed | $value |
Zend_Cache_Exception |
Definition at line 103 of file Backend.php.
$_directives [protected] |
array( 'lifetime' => 3600, 'logging' => false, 'logger' => null )
Definition at line 44 of file Backend.php.