Zenkilies's avatar

Can't use Redis as cache driver due to "array_key_exists() expects parameter 2 to be array, null given"

When I calling Cache::get('message'); and "message" isn't set, received:

ErrorException in Arr.php line 123: array_key_exists() expects parameter 2 to be array, null given

in Arr.php line 123 at Application->Laravel\Lumen\Concerns{closure}(2, 'array_key_exists() expects parameter 2 to be array, null given', '/Users/zenkilies/Workspace/vesper-env-mojito/vendor/illuminate/support/Arr.php', 123, array('array' => null, 'key' => 'client')) at array_key_exists('client', null) in Arr.php line 123 at Arr::exists(null, 'client') in Arr.php line 213 at Arr::forget(null, array('client')) in Arr.php line 419 at Arr::pull(null, 'client', 'predis') in RedisServiceProvider.php line 27 at RedisServiceProvider->Illuminate\Redis{closure}(object(Application), array()) in Container.php line 716 at Container->build(object(Closure)) in Container.php line 598 at Container->resolve('redis') in Container.php line 567 at Container->make('redis') in Application.php line 208 at Application->make('redis') in Container.php line 1139 at Container->offsetGet('redis') in Facade.php line 159 at Facade::resolveFacadeInstance('redis') in Facade.php line 128 at Facade::getFacadeRoot() in Facade.php line 215 at Facade::__callStatic('get', array()) in IndexController.php line 12

Any help, please.

0 likes
1 reply

Please or to participate in this conversation.