Class Zend_Cache_Manager

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

Located in /Cache/Manager.php (line 34)


	
			
Class Constant Summary
 PAGECACHE = 'page'
 PAGETAGCACHE = 'pagetag'
Variable Summary
Method Summary
 Zend_Cache_Core getCache (string $name)
 array getCacheTemplate (string $name)
 bool hasCache (string $name)
 bool hasCacheTemplate (string $name)
 Zend_Cache_Manager setCache (string $name, Zend_Cache_Core $cache)
 Zend_Cache_Manager setCacheTemplate (string $name, array $options)
 Zend_Cache_Manager setTemplateOptions (string $name, array $options)
 array _mergeOptions ( $current,  $options)
Variables
array $_caches = array() (line 51)

Array of caches stored by the Cache Manager instance

  • access: protected
array $_optionTemplates = array(
// Null Cache (Enforce Null/Empty Values)
'skeleton' => array(
'frontend' => array(
'name' => null,
'options' => array(),),'backend'=>array('name'=>null,'options'=>array(),),),// Simple Common Default
'default'=>array('frontend'=>array('name'=>'Core','options'=>array('automatic_serialization'=>true,),),'backend'=>array('name'=>'File','options'=>array('cache_dir'=>'../cache',),),),// Static Page HTML Cache
'page'=>array('frontend'=>array('name'=>'Capture','options'=>array('ignore_user_abort'=>true,),),'backend'=>array('name'=>'Static','options'=>array('public_dir'=>'../public',),),),// Tag Cache
'pagetag'=>array('frontend'=>array('name'=>'Core','options'=>array('automatic_serialization'=>true,'lifetime'=>null),),'backend'=>array('name'=>'File','options'=>array('cache_dir'=>'../cache','cache_file_umask'=>0644),),),)
(line 59)

Array of ready made configuration templates for lazy loading caches.

  • access: protected
Methods
getCache (line 157)

Fetch the named cache object, or instantiate and return a cache object using a named configuration template

  • access: public
Zend_Cache_Core getCache (string $name)
  • string $name
getCacheTemplate (line 224)

Get the named configuration template

  • access: public
array getCacheTemplate (string $name)
  • string $name
hasCache (line 140)

Check if the Cache Manager contains the named cache object, or a named configuration template to lazy load the cache object

  • access: public
bool hasCache (string $name)
  • string $name
hasCacheTemplate (line 210)

Check if the named configuration template

  • access: public
bool hasCacheTemplate (string $name)
  • string $name
setCache (line 127)

Set a new cache for the Cache Manager to contain

  • access: public
Zend_Cache_Manager setCache (string $name, Zend_Cache_Core $cache)
setCacheTemplate (line 191)

Set a named configuration template from which a cache object can later be lazy loaded

  • access: public
Zend_Cache_Manager setCacheTemplate (string $name, array $options)
  • string $name
  • array $options
setTemplateOptions (line 241)

Pass an array containing changes to be applied to a named configuration template

  • throws: Zend_Cache_Exception for invalid options format or if option templates do not have $name
  • access: public
Zend_Cache_Manager setTemplateOptions (string $name, array $options)
  • string $name
  • array $options
_mergeOptions (line 266)

Simple method to merge two configuration arrays

  • access: protected
array _mergeOptions ( $current,  $options)
  • array $current
  • array $options
Class Constants
PAGECACHE = 'page' (line 39)

Constant holding reserved name for default Page Cache

PAGETAGCACHE = 'pagetag' (line 44)

Constant holding reserved name for default Page Tag Cache

Documentation generated on Mon, 21 Jun 2010 15:32:30 -0400 by phpDocumentor 1.4.3