Definition at line 37 of file ShMem.php.
◆ __construct()
__construct |
( |
array |
$options = array() | ) |
|
Constructor
- Parameters
-
array | $options | associative array of options |
- Exceptions
-
Definition at line 45 of file ShMem.php.
static throwException($msg, Exception $e=null)
◆ _clear()
Clear cache
Definition at line 97 of file ShMem.php.
99 zend_shm_cache_clear($this->_options[
'namespace']);
◆ _fetch()
Fetch data
- Parameters
-
- Returns
- mixed|null
Definition at line 78 of file ShMem.php.
80 return zend_shm_cache_fetch($this->_options[
'namespace'] .
'::' .
$id);
◆ _store()
_store |
( |
|
$data, |
|
|
|
$id, |
|
|
|
$timeToLive |
|
) |
| |
|
protected |
Store data
- Parameters
-
mixed | $data | Object to store |
string | $id | Cache id |
int | $timeToLive | Time to live in seconds |
- Returns
- bool
Definition at line 61 of file ShMem.php.
63 if (zend_shm_cache_store($this->_options[
'namespace'] .
'::' .
$id,
65 $timeToLive) ===
false) {
66 $this->
_log(
'Store operation failed.');
_log($message, $priority=4)
◆ _unset()
Unset data
- Parameters
-
- Returns
- boolean true if no problem
Definition at line 89 of file ShMem.php.
91 return zend_shm_cache_delete($this->_options[
'namespace'] .
'::' .
$id);
The documentation for this class was generated from the following file:
- vendor/magento/zendframework1/library/Zend/Cache/Backend/ZendServer/ShMem.php