diff --git a/kiri-engine/Cache/Base/Redis.php b/kiri-engine/Cache/Base/Redis.php index 0b204e04..a3abd50f 100644 --- a/kiri-engine/Cache/Base/Redis.php +++ b/kiri-engine/Cache/Base/Redis.php @@ -48,7 +48,6 @@ class Redis implements StopHeartbeatCheck */ public function __construct(array $config) { - var_dump($config); $this->host = $config['host']; $this->port = $config['port']; $this->database = $config['database']; diff --git a/kiri-engine/Pool/Redis.php b/kiri-engine/Pool/Redis.php index b4340e2a..4c9d3b4f 100644 --- a/kiri-engine/Pool/Redis.php +++ b/kiri-engine/Pool/Redis.php @@ -50,7 +50,7 @@ class Redis extends Component public function create(string $name, mixed $config): Closure { return static function () use ($name, $config) { - return Kiri::getDi()->create(\Kiri\Cache\Base\Redis::class, $config); + return Kiri::getDi()->create(\Kiri\Cache\Base\Redis::class, [$config]); }; }