This commit is contained in:
2021-12-06 15:51:29 +08:00
parent 8c16d9f4b3
commit 20adc186d4
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -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]);
};
}