Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Redis#getCapabilities error when not yet initialized #18

@bvarent

Description

@bvarent
Situation
$redisCache = \Zend\Cache\StorageFactory::factory([
    'adapter' => [
        'name' => 'redis'
    ],
    'options' => [
        'server' => ['host' => 'localhost'],
    ]
]);
$cap = $redisCache->getCapabilities();
Result

Fatal error: Call to a member function getMajorVersion() on null in zendframework\zend-cache\src\Storage\Adapter\Redis.php on line 449

Expected

$cap instanceof \Zend\Cache\Storage\Capabilities

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions