Zend Framework  1.12
Static Public Member Functions | Public Attributes | Static Public Attributes | Static Protected Member Functions | List of all members
Zend_Cache Class Reference

Static Public Member Functions

static factory ($frontend, $backend, $frontendOptions=array(), $backendOptions=array(), $customFrontendNaming=false, $customBackendNaming=false, $autoload=false)
 Factory.
 
static _makeBackend ($backend, $backendOptions, $customBackendNaming=false, $autoload=false)
 Backend Constructor.
 
static _makeFrontend ($frontend, $frontendOptions=array(), $customFrontendNaming=false, $autoload=false)
 Frontend Constructor.
 
static throwException ($msg, Exception $e=null)
 Throw an exception.
 

Public Attributes

const CLEANING_MODE_ALL = 'all'
 Consts for clean() method.
 
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
 
static $standardExtendedBackends = array('File', 'Apc', 'TwoLevels', 'Memcached', 'Libmemcached', 'Sqlite', 'WinCache')
 
static $availableFrontends = array('Core', 'Output', 'Class', 'File', 'Function', 'Page')
 
static $availableBackends = array('File', 'Sqlite', 'Memcached', 'Libmemcached', 'Apc', 'ZendPlatform', 'Xcache', 'WinCache', 'TwoLevels')
 

Static Protected Member Functions

static _normalizeName ($name)
 Normalize frontend and backend names to allow multiple words TitleCased.
 

Member Function Documentation

static _makeBackend (   $backend,
  $backendOptions,
  $customBackendNaming = false,
  $autoload = false 
)
static

Backend Constructor.

Parameters
string$backend
array$backendOptions
boolean$customBackendNaming
boolean$autoload
Returns
Zend_Cache_Backend
static _makeFrontend (   $frontend,
  $frontendOptions = array(),
  $customFrontendNaming = false,
  $autoload = false 
)
static

Frontend Constructor.

Parameters
string$frontend
array$frontendOptions
boolean$customFrontendNaming
boolean$autoload
Returns
Zend_Cache_Core|Zend_Cache_Frontend
static _normalizeName (   $name)
staticprotected

Normalize frontend and backend names to allow multiple words TitleCased.

Parameters
string$nameName to normalize
Returns
string
static factory (   $frontend,
  $backend,
  $frontendOptions = array(),
  $backendOptions = array(),
  $customFrontendNaming = false,
  $customBackendNaming = false,
  $autoload = false 
)
static

Factory.

Parameters
mixed$frontendfrontend name (string) or Zend_Cache_Frontend_ object
mixed$backendbackend name (string) or Zend_Cache_Backend_ object
array$frontendOptionsassociative array of options for the corresponding frontend constructor
array$backendOptionsassociative array of options for the corresponding backend constructor
boolean$customFrontendNamingif 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$customBackendNamingif 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$autoloadif 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
static throwException (   $msg,
Exception  $e = null 
)
static

Throw an exception.

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

Parameters
string$msgMessage for the exception
Exceptions
Zend_Cache_Exception

Member Data Documentation

$availableBackends = array('File', 'Sqlite', 'Memcached', 'Libmemcached', 'Apc', 'ZendPlatform', 'Xcache', 'WinCache', 'TwoLevels')
static
$availableFrontends = array('Core', 'Output', 'Class', 'File', 'Function', 'Page')
static
$standardBackends
static
Initial value:
= array('File', 'Sqlite', 'Memcached', 'Libmemcached', 'Apc', 'ZendPlatform',
'Xcache', 'TwoLevels', 'WinCache', 'ZendServer_Disk', 'ZendServer_ShMem')
$standardExtendedBackends = array('File', 'Apc', 'TwoLevels', 'Memcached', 'Libmemcached', 'Sqlite', 'WinCache')
static
$standardFrontends = array('Core', 'Output', 'Class', 'File', 'Function', 'Page')
static
const CLEANING_MODE_ALL = 'all'

Consts for clean() method.

const CLEANING_MODE_MATCHING_ANY_TAG = 'matchingAnyTag'
const CLEANING_MODE_MATCHING_TAG = 'matchingTag'
const CLEANING_MODE_NOT_MATCHING_TAG = 'notMatchingTag'
const CLEANING_MODE_OLD = 'old'