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.

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

end(
array $tags
=
array(), int $specificLifetime
=
false, string $forcedDatas
=
null, boolean $echoData
=
true, int $priority
=
8
)
:
void
Stop the cache
Name | Type | Description |
---|---|---|
$tags | array | Tags array |
$specificLifetime | int | If != false, set a specific lifetime for this cache record (null => infinite lifetime) |
$forcedDatas | string | If not null, force written datas with this |
$echoData | boolean | If set to true, datas are sent to the browser |
$priority | int | integer between 0 (very low priority) and 10 (maximum priority) used by some particular backends |

start(
string $id, boolean $doNotTestCacheValidity
=
false, boolean $echoData
=
true
)
:
mixed
Start the cache
Name | Type | Description |
---|---|---|
$id | string | Cache id |
$doNotTestCacheValidity | boolean | If set to true, the cache validity won't be tested |
$echoData | boolean | If set to true, datas are sent to the browser if the cache is hit (simply returned else) |
Type | Description |
---|---|
mixed | True if the cache is hit (false else) with $echoData=true (default) ; string else (datas) |