API Documentation

Cache/Manager.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Cache
version
$Id$
Classes
Zend_Cache_Manager

Description

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.

Zend_Cache_Manager

category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Cache
Constants
PAGECACHE
PAGETAGCACHE
Properties
$_caches
$_optionTemplates
Methods
setCache
hasCache
getCache
getCaches
setCacheTemplate
hasCacheTemplate
getCacheTemplate
setTemplateOptions
_mergeOptions

Description

Constants

PAGECACHE

 PAGECACHE = 'page'

Constant holding reserved name for default Page Cache

Details

value
page

PAGETAGCACHE

 PAGETAGCACHE = 'pagetag'

Constant holding reserved name for default Page Tag Cache

Details

value
pagetag

Properties

$_caches

array $_caches = 'array'

Array of caches stored by the Cache Manager instance

Details

$_caches
array
visibility
protected
default
array
final
false
static
false

$_optionTemplates

array $_optionTemplates = 'array'

Array of ready made configuration templates for lazy loading caches.

Details

$_optionTemplates
array
visibility
protected
default
array
final
false
static
false

Methods

_mergeOptions

_mergeOptions( array $current, array $options ) : array

Simple method to merge two configuration arrays

Arguments
$current
array
$options
array
Output
array
Details
visibility
protected
final
false
static
false

getCache

getCache( string $name ) : Zend_Cache_Core

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

Arguments
$name
string
Details
visibility
public
final
false
static
false

getCacheTemplate

getCacheTemplate( string $name ) : array

Get the named configuration template

Arguments
$name
string
Output
array
Details
visibility
public
final
false
static
false

getCaches

getCaches( ) : array

Fetch all available caches

Output
array
An array of all available caches with it's names as key
Details
visibility
public
final
false
static
false

hasCache

hasCache( string $name ) : bool

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

Arguments
$name
string
Output
bool
Details
visibility
public
final
false
static
false

hasCacheTemplate

hasCacheTemplate( string $name ) : bool

Check if the named configuration template

Arguments
$name
string
Output
bool
Details
visibility
public
final
false
static
false

setCache

setCache( string $name, Zend_Cache_Core $cache ) : Zend_Cache_Manager

Set a new cache for the Cache Manager to contain

Arguments
$name
string
$cache
Zend_Cache_Core
Details
visibility
public
final
false
static
false

setCacheTemplate

setCacheTemplate( string $name, array $options ) : Zend_Cache_Manager

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

Arguments
$name
string
$options
array
Details
visibility
public
final
false
static
false

setTemplateOptions

setTemplateOptions( string $name, array $options ) : Zend_Cache_Manager

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

Arguments
$name
string
$options
array
Details
visibility
public
final
false
static
false
throws
for invalid options format or if option templates do not have $name
Documentation was generated by DocBlox.