mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-30 02:37:58 +08:00
Fixed invalid configuration handler for model-cache.
This commit is contained in:
parent
3d1216b38a
commit
67af4c404d
@ -47,7 +47,7 @@ class Manager
|
|||||||
}
|
}
|
||||||
|
|
||||||
foreach ($config->get('databases') as $key => $item) {
|
foreach ($config->get('databases') as $key => $item) {
|
||||||
$handlerClass = $item['handler'] ?? RedisHandler::class;
|
$handlerClass = $item['cache']['handler'] ?? RedisHandler::class;
|
||||||
$config = new Config($item['cache'] ?? [], $key);
|
$config = new Config($item['cache'] ?? [], $key);
|
||||||
|
|
||||||
/** @var HandlerInterface $handler */
|
/** @var HandlerInterface $handler */
|
||||||
|
Loading…
Reference in New Issue
Block a user