Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (\Magento\Framework\Cache\FrontendInterface $frontend, $backendPrefixes=[]) | |
test ($identifier) | |
load ($identifier) | |
save ($data, $identifier, array $tags=[], $lifeTime=null) | |
remove ($identifier) | |
clean ($mode=\Zend_Cache::CLEANING_MODE_ALL, array $tags=[]) | |
![]() | |
__construct (\Magento\Framework\Cache\FrontendInterface $frontend) | |
test ($identifier) | |
load ($identifier) | |
save ($data, $identifier, array $tags=[], $lifeTime=null) | |
remove ($identifier) | |
clean ($mode=\Zend_Cache::CLEANING_MODE_ALL, array $tags=[]) | |
getBackend () | |
getLowLevelFrontend () | |
Protected Member Functions | |
_getProfilerTags ($operation) | |
_getBackendType () | |
![]() | |
setFrontend (\Magento\Framework\Cache\FrontendInterface $frontend) | |
_getFrontend () | |
Cache frontend decorator that performs profiling of cache operations
Definition at line 12 of file Profiler.php.
__construct | ( | \Magento\Framework\Cache\FrontendInterface | $frontend, |
$backendPrefixes = [] |
|||
) |
\Magento\Framework\Cache\FrontendInterface | $frontend | |
string[] | $backendPrefixes Backend class prefixes to be striped for profiling informativeness |
Definition at line 25 of file Profiler.php.
|
protected |
Get short cache backend type name by striping known backend class prefixes
Definition at line 52 of file Profiler.php.
|
protected |
Retrieve profiler tags that correspond to a cache operation
string | $operation |
Definition at line 37 of file Profiler.php.
clean | ( | $mode = \Zend_Cache::CLEANING_MODE_ALL , |
|
array | $tags = [] |
||
) |
{Clean cache records matching specified tags
string | $mode | |
array | $tags |
Implements FrontendInterface.
Definition at line 113 of file Profiler.php.
load | ( | $identifier | ) |
{Load cache record by its unique identifier
string | $identifier |
Implements FrontendInterface.
Definition at line 78 of file Profiler.php.
remove | ( | $identifier | ) |
{Remove cache record by its unique identifier
string | $identifier |
Implements FrontendInterface.
Definition at line 102 of file Profiler.php.
save | ( | $data, | |
$identifier, | |||
array | $tags = [] , |
||
$lifeTime = null |
|||
) |
Enforce marking with a tag
{Save cache record
string | $data | |
string | $identifier | |
array | $tags | |
int | bool | null | $lifeTime |
Implements FrontendInterface.
Definition at line 91 of file Profiler.php.
test | ( | $identifier | ) |
{Test if a cache is available for the given id
string | $identifier | Cache id |
Implements FrontendInterface.
Definition at line 67 of file Profiler.php.