We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f986e3 commit 5a8c333Copy full SHA for 5a8c333
1 file changed
src/Manager.php
@@ -142,11 +142,11 @@ protected function createDriver(string $name): mixed
142
$class = $this->resolveClass($type);
143
144
if (strtolower($type) === 'redis') {
145
- $key = "think-cache.connections.$name";
+ $key = "think-cache.stores.$name";
146
$connection = Context::get($key);
147
if (!$connection) {
148
if (!isset(static::$pools[$name])) {
149
- $poolConfig = $params['pool'] ?? [];
+ $poolConfig = $params[0]['pool'] ?? [];
150
$pool = new Pool($poolConfig['max_connections'] ?? 10, $poolConfig);
151
$pool->setConnectionCreator(function () use ($class, $params) {
152
return (new Container())->invokeClass($class, $params);
0 commit comments