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.

mixed
$_cachedEntity= 'null'
The cached object or the name of the cached abstract class
null
Details
string
$_cachedEntityLabel= ''''
The class name of the cached object or cached abstract class
Used to differentiate between different classes with the same method calls.
''
Details
int
$_specificLifetime= 'false'
SpecificLifetime value
false => no specific life time
false
Details
array
$_specificOptions= 'array(
'cached_entity' => null'
Available options
available options====> (mixed) cached_entity : - if set to a class name, we will cache an abstract class and will use only static calls - if set to an object, we will cache this object methods
====> (boolean) cache_by_default : - if true, method calls will be cached by default
====> (array) cached_methods : - an array of method names which will be cached (even if cache_by_default = false)
====> (array) non_cached_methods : - an array of method names which won't be cached (even if cache_by_default = true)
array(
'cached_entity' => null
Details
__call(
string $name, array $parameters
)
:
mixed
Main method : call the specified method or get the result from cache
Name | Type | Description |
---|---|---|
$name | string | Method name |
$parameters | array | Method parameters |
Type | Description |
---|---|
mixed | Result |

__construct(
array $options
=
array()
)
:
void
Constructor
Name | Type | Description |
---|---|---|
$options | array | Associative array of options |
Exception | Description |
---|---|
\Zend_Cache_Exception |

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

makeId(
string $name, array $args
=
array()
)
:
string
Make a cache id from the method name and parameters
Name | Type | Description |
---|---|---|
$name | string | Method name |
$args | array | Method parameters |
Type | Description |
---|---|
string | Cache id |

setCachedEntity(
mixed $cachedEntity
)
:
void
Specific method to set the cachedEntity
if set to a class name, we will cache an abstract class and will use only static calls if set to an object, we will cache this object methods
Name | Type | Description |
---|---|---|
$cachedEntity | mixed |

setOption(
string $name, mixed $value
)
:
void
Public frontend to set an option
Just a wrapper to get a specific behaviour for cached_entity
Name | Type | Description |
---|---|---|
$name | string | Name of the option |
$value | mixed | Value of the option |
Exception | Description |
---|---|
\Zend_Cache_Exception |

setPriority(
int $priority
)
:
void
Set the priority (used by some particular backends)
Name | Type | Description |
---|---|---|
$priority | int | integer between 0 (very low priority) and 10 (maximum priority) |

setSpecificLifetime(
int $specificLifetime
=
false
)
:
void
Set a specific life time
Name | Type | Description |
---|---|---|
$specificLifetime | int |