Public Member Functions | Protected Attributes

Zend_Cache_Frontend_Function Class Reference

Inheritance diagram for Zend_Cache_Frontend_Function:
Zend_Cache_Core

Public Member Functions

 __construct (array $options=array())
 call ($name, $parameters=array(), $tags=array(), $specificLifetime=false, $priority=8)

Protected Attributes

 $_specificOptions

Detailed Description

Definition at line 36 of file Function.php.


Constructor & Destructor Documentation

__construct ( array $  options = array() )

Constructor

Parameters:
array$optionsAssociative array of options
Returns:
void

Definition at line 64 of file Function.php.


Member Function Documentation

call ( name,
parameters = array(),
tags = array(),
specificLifetime = false,
priority = 8 
)

Main method : call the specified function or get the result from cache

Parameters:
string$nameFunction name
array$parametersFunction parameters
array$tagsCache tags
int$specificLifetimeIf != false, set a specific lifetime for this cache record (null => infinite lifetime)
int$priorityinteger between 0 (very low priority) and 10 (maximum priority) used by some particular backends
Returns:
mixed Result

Definition at line 82 of file Function.php.


Field Documentation

$_specificOptions [protected]
Initial value:
 array(
        'cache_by_default' => true,
        'cached_functions' => array(),
        'non_cached_functions' => array()
    )

Not used for the core, just a sort a hint to get a common setOption() method (for the core and for frontends)

Reimplemented from Zend_Cache_Core.

Definition at line 52 of file Function.php.


The documentation for this class was generated from the following file: