compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (2)

View Page History

{zone-data:skeletons}
Class skeletons will be published here as development progresses.
*Zend_Cache_Manager*

{code}
<?php

/** Zend_Cache_Exception */
require_once 'Zend/Cache/Exception.php';

class Zend_Cache_Manager
{

/**
* Array of caches stored by the Cache Manager instance
*
* @var array
*/
protected $_caches = array();

/**
* Array of ready made configuration templates for lazy
* loading caches.
*
* @var array
*/
protected $_configTemplates = array(
// Null Cache (Enforce Null/Empty Values)
'skeleton' => array(
'frontend' => array(
'name' => null,
'options' => array()
),
'backend' => array(
'name' => null,
'options' => array()
)
),
// Simplest 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' => 'Output',
'options' => array(
'ignore_user_abort' => true
)
),
'backend' => array(
'name' => 'Static',
'options' => array(
'public_dir' => '../public',
)
)
)
);

/**
* Set a new cache for the Cache Manager to contain
*
* @param string $name
* @param Zend_Cache_Core $cache
* @return void
*/
public function setCache($name, Zend_Cache_Core $cache){}

/**
* Check if the Cache Manager contains the named cache object, or a named
* configuration template to lazy load the cache object
*
* @param string $name
* @return bool
*/
public function hasCache($name){}

/**
* Fetch the named cache object, or instantiate and return a cache object
* using a named configuration template
*
* @param string $name
* @return Zend_Cache_Core
*/
public function getCache($name){}

/**
* Set a named configuration template from which a cache object can later
* be lazy loaded
*
* @param string $name
* @param array $config
* @return void
*/
public function setCacheTemplate($name, array $config){}

/**
* Check if the named configuration template
*
* @param string $name
* @return bool
*/
public function hasCacheTemplate($name){}

/**
* Get the named configuration template
*
* @param string $name
* @return array
*/
public function getCacheTemplate($name){}

/**
* Pass an array containing changes to be applied to a named configuration
* template
*
* @param string $name
* @param array $config
* @return void
*/
public function setTemplateConfig($name, array $config){}

/**
* Simple method to merge two configuration arrays
*
* @param array $current
* @param array $config
* @return array
*/
protected function _mergeConfigs(array $current, array $config){}

}
{code}
{zone-data}