This commit is contained in:
xl
2023-05-26 11:16:45 +08:00
parent 37bbb14fdb
commit 5b27d5c07e
4 changed files with 14 additions and 71 deletions
+9 -1
View File
@@ -30,7 +30,7 @@ use ReflectionException;
* @package Kiri\Cache
* @mixin \Redis
*/
class Redis extends Component
class Redis
{
public string $host = '';
@@ -57,6 +57,14 @@ class Redis extends Component
public array $pool = ['min' => 1, 'max' => 100];
/**
* 初始化
*/
public function __construct()
{
Kiri::configure($this, \config('redis', []));
}
/**
* @return void
* @throws Exception