Skip to content

Commit 5a8c333

Browse files
committed
fix config
1 parent 4f986e3 commit 5a8c333

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Manager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,11 @@ protected function createDriver(string $name): mixed
142142
$class = $this->resolveClass($type);
143143

144144
if (strtolower($type) === 'redis') {
145-
$key = "think-cache.connections.$name";
145+
$key = "think-cache.stores.$name";
146146
$connection = Context::get($key);
147147
if (!$connection) {
148148
if (!isset(static::$pools[$name])) {
149-
$poolConfig = $params['pool'] ?? [];
149+
$poolConfig = $params[0]['pool'] ?? [];
150150
$pool = new Pool($poolConfig['max_connections'] ?? 10, $poolConfig);
151151
$pool->setConnectionCreator(function () use ($class, $params) {
152152
return (new Container())->invokeClass($class, $params);

0 commit comments

Comments
 (0)