Static Public Member Functions | |
static | factory ($frontend, $backend, $frontendOptions=array(), $backendOptions=array(), $customFrontendNaming=false, $customBackendNaming=false, $autoload=false) |
static | _makeBackend ($backend, $backendOptions, $customBackendNaming=false, $autoload=false) |
static | _makeFrontend ($frontend, $frontendOptions=array(), $customFrontendNaming=false, $autoload=false) |
static | throwException ($msg) |
Data Fields | |
const | CLEANING_MODE_ALL = 'all' |
const | CLEANING_MODE_OLD = 'old' |
const | CLEANING_MODE_MATCHING_TAG = 'matchingTag' |
const | CLEANING_MODE_NOT_MATCHING_TAG = 'notMatchingTag' |
const | CLEANING_MODE_MATCHING_ANY_TAG = 'matchingAnyTag' |
Static Public Attributes | |
static | $standardFrontends = array('Core', 'Output', 'Class', 'File', 'Function', 'Page') |
static | $standardBackends = array('File', 'Sqlite', 'Memcached', 'Apc', 'ZendPlatform', 'Xcache', 'TwoLevels') |
static | $standardExtendedBackends = array('File', 'Apc', 'TwoLevels', 'Memcached', 'Sqlite') |
static | $availableFrontends = array('Core', 'Output', 'Class', 'File', 'Function', 'Page') |
static | $availableBackends = array('File', 'Sqlite', 'Memcached', 'Apc', 'ZendPlatform', 'Xcache', 'TwoLevels') |
Static Protected Member Functions | |
static | _normalizeName ($name) |
Definition at line 28 of file Cache.php.
static _makeBackend | ( | $ | backend, |
$ | backendOptions, | ||
$ | customBackendNaming = false , |
||
$ | autoload = false |
||
) | [static] |
Frontend Constructor
string | $backend | |
array | $backendOptions | |
boolean | $customBackendNaming | |
boolean | $autoload |
static _makeFrontend | ( | $ | frontend, |
$ | frontendOptions = array() , |
||
$ | customFrontendNaming = false , |
||
$ | autoload = false |
||
) | [static] |
static _normalizeName | ( | $ | name ) | [static, protected] |
static factory | ( | $ | frontend, |
$ | backend, | ||
$ | frontendOptions = array() , |
||
$ | backendOptions = array() , |
||
$ | customFrontendNaming = false , |
||
$ | customBackendNaming = false , |
||
$ | autoload = false |
||
) | [static] |
Factory
mixed | $frontend | frontend name (string) or Zend_Cache_Frontend_ object |
mixed | $backend | backend name (string) or Zend_Cache_Backend_ object |
array | $frontendOptions | associative array of options for the corresponding frontend constructor |
array | $backendOptions | associative array of options for the corresponding backend constructor |
boolean | $customFrontendNaming | if true, the frontend argument is used as a complete class name ; if false, the frontend argument is used as the end of "Zend_Cache_Frontend_[...]" class name |
boolean | $customBackendNaming | if true, the backend argument is used as a complete class name ; if false, the backend argument is used as the end of "Zend_Cache_Backend_[...]" class name |
boolean | $autoload | if true, there will no require_once for backend and frontend (usefull only for custom backends/frontends) |
Zend_Cache_Exception |
static throwException | ( | $ | msg ) | [static] |
Throw an exception
Note : for perf reasons, the "load" of Zend/Cache/Exception is dynamic
string | $msg | Message for the exception |
Zend_Cache_Exception |
const CLEANING_MODE_ALL = 'all' |