Definition at line 13 of file Cache.php.
◆ __construct()
- Parameters
-
\Magento\Framework\App\Cache\Frontend\Pool | $frontendPool | |
Definition at line 35 of file Cache.php.
37 $this->_frontendPool = $frontendPool;
38 $this->_frontend = $frontendPool->get($this->_frontendIdentifier);
◆ getFrontend()
Get cache frontend API object
- Returns
- \Magento\Framework\Cache\FrontendInterface
Implements CacheInterface.
Definition at line 46 of file Cache.php.
◆ load()
Load data from cache by id
- Parameters
-
- Returns
- string
Implements CacheInterface.
Definition at line 57 of file Cache.php.
59 return $this->_frontend->load($identifier);
◆ remove()
Remove cached data by identifier
- Parameters
-
- Returns
- bool
Implements CacheInterface.
Definition at line 82 of file Cache.php.
84 return $this->_frontend->remove($identifier);
◆ save()
save |
( |
|
$data, |
|
|
|
$identifier, |
|
|
|
$tags = [] , |
|
|
|
$lifeTime = null |
|
) |
| |
Save data
- Parameters
-
string | $data | |
string | $identifier | |
array | $tags | |
int | $lifeTime | |
- Returns
- bool
Implements CacheInterface.
Definition at line 71 of file Cache.php.
73 return $this->_frontend->save((
string)
$data, $identifier, $tags, $lifeTime);
◆ $_frontend
◆ $_frontendIdentifier
◆ $_frontendPool
The documentation for this class was generated from the following file: