Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (array $options=array()) | |
start ($id, $doNotTestCacheValidity=false, $echoData=true) | |
end ($tags=array(), $specificLifetime=false, $forcedDatas=null, $echoData=true, $priority=8) | |
![]() | |
__construct ($options=array()) | |
setConfig (Zend_Config $config) | |
setBackend (Zend_Cache_Backend $backendObject) | |
getBackend () | |
setOption ($name, $value) | |
getOption ($name) | |
setLifetime ($newLifetime) | |
load ($id, $doNotTestCacheValidity=false, $doNotUnserialize=false) | |
test ($id) | |
save ($data, $id=null, $tags=array(), $specificLifetime=false, $priority=8) | |
remove ($id) | |
clean ($mode='all', $tags=array()) | |
getIdsMatchingTags ($tags=array()) | |
getIdsNotMatchingTags ($tags=array()) | |
getIdsMatchingAnyTags ($tags=array()) | |
getIds () | |
getTags () | |
getFillingPercentage () | |
getMetadatas ($id) | |
touch ($id, $extraLifetime) | |
Additional Inherited Members | |
![]() | |
const | BACKEND_NOT_SUPPORTS_TAG = 'tags are not supported by the current backend' |
const | BACKEND_NOT_IMPLEMENTS_EXTENDED_IF = 'Current backend doesn\'t implement the Zend_Cache_Backend_ExtendedInterface, so this method is not available' |
![]() | |
_validateIdOrTag ($string) | |
_validateTagsArray ($tags) | |
_loggerSanity () | |
_log ($message, $priority=4) | |
_id ($id) | |
![]() | |
$_backend = null | |
$_options | |
$_specificOptions = array() | |
$_extendedBackend = false | |
$_backendCapabilities = array() | |
![]() | |
static | $_directivesList = array('lifetime', 'logging', 'logger') |
Definition at line 36 of file Output.php.
__construct | ( | array | $options = array() | ) |
Constructor
array | $options | Associative array of options |
Definition at line 47 of file Output.php.
end | ( | $tags = array() , |
|
$specificLifetime = false , |
|||
$forcedDatas = null , |
|||
$echoData = true , |
|||
$priority = 8 |
|||
) |
Stop the cache
array | $tags | Tags array |
int | $specificLifetime | If != false, set a specific lifetime for this cache record (null => infinite lifetime) |
string | $forcedDatas | If not null, force written datas with this |
boolean | $echoData | If set to true, datas are sent to the browser |
int | $priority | integer between 0 (very low priority) and 10 (maximum priority) used by some particular backends |
Definition at line 88 of file Output.php.
start | ( | $id, | |
$doNotTestCacheValidity = false , |
|||
$echoData = true |
|||
) |
Start the cache
string | $id | Cache id |
boolean | $doNotTestCacheValidity | If set to true, the cache validity won't be tested |
boolean | $echoData | If set to true, datas are sent to the browser if the cache is hit (simply returned else) |
Definition at line 61 of file Output.php.