|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct (array $options=array()) | |
| load ($id, $doNotTestCacheValidity=false) | |
| test ($id) | |
| save ($data, $id, $tags=array(), $specificLifetime=false) | |
| remove ($id) | |
| clean ($mode=Zend_Cache::CLEANING_MODE_ALL, $tags=array()) | |
| isAutomaticCleaningAvailable () | |
Public Member Functions inherited from Zend_Cache_Backend | |
| __construct (array $options=array()) | |
| setDirectives ($directives) | |
| setOption ($name, $value) | |
| getOption ($name) | |
| getLifetime ($specificLifetime) | |
| isAutomaticCleaningAvailable () | |
| getTmpDir () | |
Public Member Functions inherited from Zend_Cache_Backend_Interface | |
| setDirectives ($directives) | |
Data Fields | |
| const | TAGS_UNSUPPORTED_BY_CLEAN_OF_XCACHE_BACKEND = 'Zend_Cache_Backend_Xcache::clean() : tags are unsupported by the Xcache backend' |
| const | TAGS_UNSUPPORTED_BY_SAVE_OF_XCACHE_BACKEND = 'Zend_Cache_Backend_Xcache::save() : tags are unsupported by the Xcache backend' |
Protected Attributes | |
| $_options | |
Protected Attributes inherited from Zend_Cache_Backend | |
| $_directives | |
| $_options = array() | |
Additional Inherited Members | |
Protected Member Functions inherited from Zend_Cache_Backend | |
| _isGoodTmpDir ($dir) | |
| _loggerSanity () | |
| _log ($message, $priority=4) | |
Definition at line 41 of file Xcache.php.
| __construct | ( | array | $options = array() | ) |
Constructor
| array | $options | associative array of options |
| Zend_Cache_Exception |
Definition at line 73 of file Xcache.php.
| clean | ( | $mode = Zend_Cache::CLEANING_MODE_ALL, |
|
$tags = array() |
|||
| ) |
Clean some cache records
Available modes are : 'all' (default) => remove all cache entries ($tags is not used) 'old' => unsupported 'matchingTag' => unsupported 'notMatchingTag' => unsupported 'matchingAnyTag' => unsupported
| string | $mode | clean mode |
| array | $tags | array of tags |
| Zend_Cache_Exception |
Implements Zend_Cache_Backend_Interface.
Definition at line 167 of file Xcache.php.
| isAutomaticCleaningAvailable | ( | ) |
Return true if the automatic cleaning is available for the backend
Definition at line 216 of file Xcache.php.
| load | ( | $id, | |
$doNotTestCacheValidity = false |
|||
| ) |
Test if a cache is available for the given id and (if yes) return it (false else)
WARNING $doNotTestCacheValidity=true is unsupported by the Xcache backend
| string | $id | cache id |
| boolean | $doNotTestCacheValidity | if set to true, the cache validity won't be tested |
Implements Zend_Cache_Backend_Interface.
Definition at line 90 of file Xcache.php.
| remove | ( | $id | ) |
Remove a cache record
| string | $id | cache id |
Implements Zend_Cache_Backend_Interface.
Definition at line 147 of file Xcache.php.
| save | ( | $data, | |
| $id, | |||
$tags = array(), |
|||
$specificLifetime = false |
|||
| ) |
Save some string datas into a cache record
Note : $data is always "string" (serialization is done by the core not by the backend)
| string | $data | datas to cache |
| string | $id | cache id |
| array | $tags | array of strings, the cache record will be tagged by each string entry |
| int | $specificLifetime | if != false, set a specific lifetime for this cache record (null => infinite lifetime) |
Implements Zend_Cache_Backend_Interface.
Definition at line 131 of file Xcache.php.
| test | ( | $id | ) |
Test if a cache is available or not (for the given id)
| string | $id | cache id |
Implements Zend_Cache_Backend_Interface.
Definition at line 108 of file Xcache.php.
|
protected |
Definition at line 61 of file Xcache.php.
| const TAGS_UNSUPPORTED_BY_CLEAN_OF_XCACHE_BACKEND = 'Zend_Cache_Backend_Xcache::clean() : tags are unsupported by the Xcache backend' |
Log message
Definition at line 47 of file Xcache.php.
| const TAGS_UNSUPPORTED_BY_SAVE_OF_XCACHE_BACKEND = 'Zend_Cache_Backend_Xcache::save() : tags are unsupported by the Xcache backend' |
Definition at line 48 of file Xcache.php.