|
static | factory ($backend, $backendOptions=array()) |
|
Definition at line 40 of file Memory.php.
◆ factory()
static factory |
( |
|
$backend, |
|
|
|
$backendOptions = array() |
|
) |
| |
|
static |
Factory
- Parameters
-
string | $backend | backend name |
array | $backendOptions | associative array of options for the corresponding backend constructor |
- Returns
- Zend_Memory_Manager
- Exceptions
-
Definition at line 50 of file Memory.php.
52 if (strcasecmp($backend,
'none') == 0) {
58 $backendIsFound =
false;
60 if (strcasecmp($backend, $zendCacheBackend) == 0) {
61 $backend = $zendCacheBackend;
62 $backendIsFound =
true;
67 if (!$backendIsFound) {
68 #require_once 'Zend/Memory/Exception.php'; 72 $backendClass =
'Zend_Cache_Backend_' . $backend;
76 #require_once str_replace('_', DIRECTORY_SEPARATOR, $backendClass) . '.php'; 78 $backendObject =
new $backendClass($backendOptions);
The documentation for this class was generated from the following file:
- vendor/magento/zendframework1/library/Zend/Memory.php