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.

array
$_specificOptions= 'array(
'cache_by_default' => true'
This frontend specific options
options====> (boolean) cache_by_default : - if true, function calls will be cached by default
====> (array) cached_functions : - an array of function names which will be cached (even if cache_by_default = false)
====> (array) non_cached_functions : - an array of function names which won't be cached (even if cache_by_default = true)
array(
'cache_by_default' => true
Details
__construct(
array $options
=
array()
)
:
void
Constructor
Name | Type | Description |
---|---|---|
$options | array | Associative array of options |

_makeId(
$callback, $args
)
:
void
ZF-9970
Name | Type | Description |
---|---|---|
$callback | ||
$args |

call(
callback $callback, array $parameters
=
array(), array $tags
=
array(), int $specificLifetime
=
false, int $priority
=
8
)
:
mixed
Main method : call the specified function or get the result from cache
Name | Type | Description |
---|---|---|
$callback | callback | A valid callback |
$parameters | array | Function parameters |
$tags | array | Cache tags |
$specificLifetime | int | If != false, set a specific lifetime for this cache record (null => infinite lifetime) |
$priority | int | integer between 0 (very low priority) and 10 (maximum priority) used by some particular backends |
Type | Description |
---|---|
mixed | Result |

makeId(
callback $callback, array $args
=
array()
)
:
string
Make a cache id from the function name and parameters
Name | Type | Description |
---|---|---|
$callback | callback | A valid callback |
$args | array | Function parameters |
Type | Description |
---|---|
string | Cache id |
Exception | Description |
---|---|
\Zend_Cache_Exception |