Cache/Frontend/Output.php
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 [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Cache
- Subpackage
- Zend_Cache_Frontend
- Version
- $Id$
\Zend_Cache_Frontend_Output
Package: Zend_Cache\Zend_Cache_Frontend
- Parent(s)
- \Zend_Cache_Core
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
Methods
__construct(array $options = array()) : void
Constructor
Parameters
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
Parameters
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
Parameters
Returns
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) |