Cache.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
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

Package: Zend_Cache
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Constants

>VConstant  CLEANING_MODE_ALL = 'all'
Consts for clean() method
>VConstant  CLEANING_MODE_OLD = 'old'
>VConstant  CLEANING_MODE_MATCHING_TAG = 'matchingTag'
>VConstant  CLEANING_MODE_NOT_MATCHING_TAG = 'notMatchingTag'
>VConstant  CLEANING_MODE_MATCHING_ANY_TAG = 'matchingAnyTag'

Properties

>VPropertypublicarray $availableBackends = array('File', 'Sqlite', 'Memcached', 'Libmemcached', 'Apc', 'ZendPlatform', 'Xcache', 'WinCache', 'TwoLevels')
static
Only for backward compatibility (may be removed in next major release)
Default valuearray('File', 'Sqlite', 'Memcached', 'Libmemcached', 'Apc', 'ZendPlatform', 'Xcache', 'WinCache', 'TwoLevels')Details
Type
array
Deprecated
 
>VPropertypublicarray $availableFrontends = array('Core', 'Output', 'Class', 'File', 'Function', 'Page')
static
Only for backward compatibility (may be removed in next major release)
Default valuearray('Core', 'Output', 'Class', 'File', 'Function', 'Page')Details
Type
array
Deprecated
 
>VPropertypublicarray $standardBackends = array('File', 'Sqlite', 'Memcached', 'Libmemcached', 'Apc', 'ZendPlatform', 'Xcache', 'TwoLevels', 'WinCache', 'ZendServer_Disk', 'ZendServer_ShMem')
static
Standard backends
Default valuearray('File', 'Sqlite', 'Memcached', 'Libmemcached', 'Apc', 'ZendPlatform', 'Xcache', 'TwoLevels', 'WinCache', 'ZendServer_Disk', 'ZendServer_ShMem')Details
Type
array
>VPropertypublicarray $standardExtendedBackends = array('File', 'Apc', 'TwoLevels', 'Memcached', 'Libmemcached', 'Sqlite', 'WinCache')
static
Standard backends which implement the ExtendedInterface
Default valuearray('File', 'Apc', 'TwoLevels', 'Memcached', 'Libmemcached', 'Sqlite', 'WinCache')Details
Type
array
>VPropertypublicarray $standardFrontends = array('Core', 'Output', 'Class', 'File', 'Function', 'Page')
static
Standard frontends
Default valuearray('Core', 'Output', 'Class', 'File', 'Function', 'Page')Details
Type
array

Methods

methodprivate_isReadable(string $filename) : boolean
static

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

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
NameTypeDescription
$filenamestring
Returns
TypeDescription
boolean
methodpublic_makeBackend(string $backend, array $backendOptions, boolean $customBackendNaming = false, boolean $autoload = false) : \Zend_Cache_Backend
static

Backend Constructor

Parameters
NameTypeDescription
$backendstring
$backendOptionsarray
$customBackendNamingboolean
$autoloadboolean
Returns
TypeDescription
\Zend_Cache_Backend
methodpublic_makeFrontend(string $frontend, array $frontendOptions = array(), boolean $customFrontendNaming = false, boolean $autoload = false) : \Zend_Cache_Core | \Zend_Cache_Frontend
static

Frontend Constructor

Parameters
NameTypeDescription
$frontendstring
$frontendOptionsarray
$customFrontendNamingboolean
$autoloadboolean
Returns
TypeDescription
\Zend_Cache_Core | \Zend_Cache_Frontend
methodprotected_normalizeName(string $name) : string
static

Normalize frontend and backend names to allow multiple words TitleCased

Parameters
NameTypeDescription
$namestring

Name to normalize

Returns
TypeDescription
string
methodpublicfactory(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

Factory

Parameters
NameTypeDescription
$frontendmixed

frontend name (string) or Zend_Cache_Frontend_ object

$backendmixed

backend name (string) or Zend_Cache_Backend_ object

$frontendOptionsarray

associative array of options for the corresponding frontend constructor

$backendOptionsarray

associative array of options for the corresponding backend constructor

$customFrontendNamingboolean

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

$customBackendNamingboolean

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

$autoloadboolean

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

Returns
TypeDescription
\Zend_Cache_Core | \Zend_Cache_Frontend
Throws
ExceptionDescription
\Zend_Cache_Exception
methodpublicthrowException(string $msg,  $e = null) : void
static

Throw an exception

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

Message for the exception

$e
Throws
ExceptionDescription
\Zend_Cache_Exception
Documentation was generated by phpDocumentor 2.2.0 .