This commit is contained in:
2023-04-19 21:39:55 +08:00
parent 7ff9c2b78e
commit e4b28f7679
+8 -8
View File
@@ -33,28 +33,28 @@ use ReflectionException;
class Redis extends Component
{
private string $host = '';
public string $host = '';
private int $port = 6379;
public int $port = 6379;
private string $prefix = 'api:';
public string $prefix = 'api:';
private string $auth = '';
public string $auth = '';
private int $databases = 0;
public int $databases = 0;
private int $timeout = 30;
public int $timeout = 30;
/**
* @var int
*/
private int $read_timeout = -1;
public int $read_timeout = -1;
/**
* @var array|int[]
*/
private array $pool = ['min' => 1, 'max' => 100];
public array $pool = ['min' => 1, 'max' => 100];
/**