package Zend_Cache
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Backend Constructor

_makeBackend(string $backend, array $backendOptions, boolean $customBackendNaming = false, boolean $autoload = false) : \Zend_Cache_Backend
Static

Parameters

$backend

string

$backendOptions

array

$customBackendNaming

boolean

$autoload

boolean

Returns

\Zend_Cache_Backend

Frontend Constructor

_makeFrontend(string $frontend, array $frontendOptions = array(), boolean $customFrontendNaming = false, boolean $autoload = false) : \Zend_Cache_Core | \Zend_Cache_Frontend
Static

Parameters

$frontend

string

$frontendOptions

array

$customFrontendNaming

boolean

$autoload

boolean

Returns

\Zend_Cache_Core\Zend_Cache_Frontend

Factory

factory(mixed $frontend, mixed $backend, array $frontendOptions = array(), array $backendOptions = array(), boolean $customFrontendNaming = false, boolean $customBackendNaming = false, boolean $autoload = false) : \Zend_Cache_Core | \Zend_Cache_Frontend
Static

Parameters

$frontend

mixed

frontend name (string) or Zend_CacheFrontend object

$backend

mixed

backend name (string) or Zend_CacheBackend object

$frontendOptions

array

associative array of options for the corresponding frontend constructor

$backendOptions

array

associative array of options for the corresponding backend constructor

$customFrontendNaming

boolean

if true, the frontend argument is used as a complete class name ; if false, the frontend argument is used as the end of "Zend_CacheFrontend[...]" class name

$customBackendNaming

boolean

if true, the backend argument is used as a complete class name ; if false, the backend argument is used as the end of "Zend_CacheBackend[...]" class name

$autoload

boolean

if true, there will no require_once for backend and frontend (useful only for custom backends/frontends)

Exceptions

\Zend_Cache_Exception

Returns

\Zend_Cache_Core\Zend_Cache_Frontend

Throw an exception

throwException(string $msg, \Exception $e = null
Static

Note : for perf reasons, the "load" of Zend/Cache/Exception is dynamic

Parameters

$msg

string

Message for the exception

$e

Exceptions

\Zend_Cache_Exception

Normalize frontend and backend names to allow multiple words TitleCased

_normalizeName(string $name) : string
Static

Parameters

$name

string

Name to normalize

Returns

string

Returns TRUE if the $filename is readable, or FALSE otherwise.

_isReadable(string $filename) : boolean
Static

This function uses the PHP include_path, where PHP's is_readable() does not.

Note : this method comes from Zend_Loader (see #ZF-2891 for details)

Parameters

$filename

string

Returns

boolean

 Properties

 

Only for backward compatibility (may be removed in next major release)

$availableBackends : array

Default

array('File', 'Sqlite', 'Memcached', 'Libmemcached', 'Apc', 'ZendPlatform', 'Xcache', 'WinCache', 'TwoLevels')
Static
deprecated
 

Only for backward compatibility (may be removed in next major release)

$availableFrontends : array

Default

array('Core', 'Output', 'Class', 'File', 'Function', 'Page')
Static
deprecated
 

Standard backends

$standardBackends : array

Default

array('File', 'Sqlite', 'Memcached', 'Libmemcached', 'Apc', 'ZendPlatform', 'Xcache', 'TwoLevels', 'WinCache', 'ZendServer_Disk', 'ZendServer_ShMem')
Static
 

Standard backends which implement the ExtendedInterface

$standardExtendedBackends : array

Default

array('File', 'Apc', 'TwoLevels', 'Memcached', 'Libmemcached', 'Sqlite', 'WinCache')
Static
 

Standard frontends

$standardFrontends : array

Default

array('Core', 'Output', 'Class', 'File', 'Function', 'Page')
Static

 Constants

 

Consts for clean() method

CLEANING_MODE_ALL = 'all' 
 

CLEANING_MODE_MATCHING_ANY_TAG

CLEANING_MODE_MATCHING_ANY_TAG = 'matchingAnyTag' 
 

CLEANING_MODE_MATCHING_TAG

CLEANING_MODE_MATCHING_TAG = 'matchingTag' 
 

CLEANING_MODE_NOT_MATCHING_TAG

CLEANING_MODE_NOT_MATCHING_TAG = 'notMatchingTag' 
 

CLEANING_MODE_OLD

CLEANING_MODE_OLD = 'old'