Abstract Class Zend_Cache

Description
  • copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  • abstract:
  • license: New BSD License

Located in /Cache.php (line 28)


	
			
Class Constant Summary
Variable Summary
 static array $availableBackends
 static array $availableFrontends
 static array $standardBackends
 static array $standardFrontends
Method Summary
 static Zend_Cache_Core|Zend_Cache_Frontend factory (mixed $frontend, mixed $backend, [array $frontendOptions = array()], [array $backendOptions = array()], [boolean $customFrontendNaming = false], [boolean $customBackendNaming = false], [boolean $autoload = false])
 static void throwException (string $msg, [ $e = null])
 static Zend_Cache_Backend _makeBackend (string $backend, array $backendOptions, [boolean $customBackendNaming = false], [boolean $autoload = false])
 static Zend_Cache_Core|Zend_Cache_Frontend _makeFrontend (string $frontend, [array $frontendOptions = array()], [boolean $customFrontendNaming = false], [boolean $autoload = false])
 static string _normalizeName (string $name)
Variables
static array $availableBackends = array('File', 'Sqlite', 'Memcached', 'Apc', 'ZendPlatform', 'Xcache', 'TwoLevels') (line 67)

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

  • deprecated:
  • access: public
static array $availableFrontends = array('Core', 'Output', 'Class', 'File', 'Function', 'Page') (line 59)

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

  • deprecated:
  • access: public
static array $standardBackends = array('File', 'Sqlite', 'Memcached', 'Apc', 'ZendPlatform',
'Xcache', 'TwoLevels', 'ZendServer_Disk', 'ZendServer_ShMem')
(line 43)

Standard backends

  • access: public
static array $standardExtendedBackends = array('File', 'Apc', 'TwoLevels', 'Memcached', 'Sqlite') (line 51)

Standard backends which implement the ExtendedInterface

  • access: public
static array $standardFrontends = array('Core', 'Output', 'Class', 'File', 'Function', 'Page') (line 36)

Standard frontends

  • access: public
Methods
static factory (line 91)

Factory

  • throws: Zend_Cache_Exception
  • access: public
static Zend_Cache_Core|Zend_Cache_Frontend factory (mixed $frontend, mixed $backend, [array $frontendOptions = array()], [array $backendOptions = array()], [boolean $customFrontendNaming = false], [boolean $customBackendNaming = false], [boolean $autoload = false])
  • 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)
static throwException (line 205)

Throw an exception

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

  • throws: Zend_Cache_Exception
  • access: public
static void throwException (string $msg, [ $e = null])
  • string $msg: Message for the exception
  • Exception $e
static _makeBackend (line 124)

Frontend Constructor

  • access: public
static Zend_Cache_Backend _makeBackend (string $backend, array $backendOptions, [boolean $customBackendNaming = false], [boolean $autoload = false])
  • string $backend
  • array $backendOptions
  • boolean $customBackendNaming
  • boolean $autoload
static _makeFrontend (line 165)

Backend Constructor

  • access: public
static Zend_Cache_Core|Zend_Cache_Frontend _makeFrontend (string $frontend, [array $frontendOptions = array()], [boolean $customFrontendNaming = false], [boolean $autoload = false])
  • string $frontend
  • array $frontendOptions
  • boolean $customFrontendNaming
  • boolean $autoload
static _normalizeName (line 218)

Normalize frontend and backend names to allow multiple words TitleCased

  • access: protected
static string _normalizeName (string $name)
  • string $name: Name to normalize
Class Constants
CLEANING_MODE_ALL = 'all' (line 72)

Consts for clean() method

CLEANING_MODE_MATCHING_ANY_TAG = 'matchingAnyTag' (line 76)
CLEANING_MODE_MATCHING_TAG = 'matchingTag' (line 74)
CLEANING_MODE_NOT_MATCHING_TAG = 'notMatchingTag' (line 75)
CLEANING_MODE_OLD = 'old' (line 73)

Documentation generated on Mon, 21 Jun 2010 15:10:23 -0400 by phpDocumentor 1.4.3