Cache.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Cache
- Version
- $Id$
\Zend_Cache
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
Properties
array $availableBackends = array('File', 'Sqlite', 'Memcached', 'Libmemcached', 'Apc', 'ZendPlatform', 'Xcache', 'WinCache', 'TwoLevels')
array('File', 'Sqlite', 'Memcached', 'Libmemcached', 'Apc', 'ZendPlatform', 'Xcache', 'WinCache', 'TwoLevels')
Details- Type
- array
- Deprecated
array $availableFrontends = array('Core', 'Output', 'Class', 'File', 'Function', 'Page')
array('Core', 'Output', 'Class', 'File', 'Function', 'Page')
Details- Type
- array
- Deprecated
array $standardBackends = array('File', 'Sqlite', 'Memcached', 'Libmemcached', 'Apc', 'ZendPlatform', 'Xcache', 'TwoLevels', 'WinCache', 'ZendServer_Disk', 'ZendServer_ShMem')
array('File', 'Sqlite', 'Memcached', 'Libmemcached', 'Apc', 'ZendPlatform', 'Xcache', 'TwoLevels', 'WinCache', 'ZendServer_Disk', 'ZendServer_ShMem')
Details- Type
- array
array $standardExtendedBackends = array('File', 'Apc', 'TwoLevels', 'Memcached', 'Libmemcached', 'Sqlite', 'WinCache')
array('File', 'Apc', 'TwoLevels', 'Memcached', 'Libmemcached', 'Sqlite', 'WinCache')
Details- Type
- array
Methods
_isReadable(string $filename) : boolean
Returns TRUE if the $filename is readable, or FALSE otherwise.
Name | Type | Description |
---|---|---|
$filename | string |
Type | Description |
---|---|
boolean |
_makeBackend(string $backend, array $backendOptions, boolean $customBackendNaming = false, boolean $autoload = false) : \Zend_Cache_Backend
Backend Constructor
Name | Type | Description |
---|---|---|
$backend | string | |
$backendOptions | array | |
$customBackendNaming | boolean | |
$autoload | boolean |
Type | Description |
---|---|
\Zend_Cache_Backend |
_makeFrontend(string $frontend, array $frontendOptions = array(), boolean $customFrontendNaming = false, boolean $autoload = false) : \Zend_Cache_Core | \Zend_Cache_Frontend
Frontend Constructor
Name | Type | Description |
---|---|---|
$frontend | string | |
$frontendOptions | array | |
$customFrontendNaming | boolean | |
$autoload | boolean |
Type | Description |
---|---|
\Zend_Cache_Core | \Zend_Cache_Frontend |
_normalizeName(string $name) : string
Normalize frontend and backend names to allow multiple words TitleCased
Name | Type | Description |
---|---|---|
$name | string | Name to normalize |
Type | Description |
---|---|
string |
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
Factory
Name | Type | Description |
---|---|---|
$frontend | mixed | frontend name (string) or Zend_Cache_Frontend_ object |
$backend | mixed | backend name (string) or Zend_Cache_Backend_ 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_Cache_Frontend_[...]" 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_Cache_Backend_[...]" class name |
$autoload | boolean | if true, there will no require_once for backend and frontend (useful only for custom backends/frontends) |
Type | Description |
---|---|
\Zend_Cache_Core | \Zend_Cache_Frontend |
Exception | Description |
---|---|
\Zend_Cache_Exception |
throwException(string $msg, $e = null) : void
Throw an exception
Name | Type | Description |
---|---|---|
$msg | string | Message for the exception |
$e |
Exception | Description |
---|---|
\Zend_Cache_Exception |