Fixed invalid configuration handler for model-cache.

This commit is contained in:
李铭昕 2019-06-28 11:34:49 +08:00
parent 3d1216b38a
commit 67af4c404d

View File

@ -47,7 +47,7 @@ class Manager
}
foreach ($config->get('databases') as $key => $item) {
$handlerClass = $item['handler'] ?? RedisHandler::class;
$handlerClass = $item['cache']['handler'] ?? RedisHandler::class;
$config = new Config($item['cache'] ?? [], $key);
/** @var HandlerInterface $handler */