This commit is contained in:
2020-10-29 18:17:25 +08:00
parent 6839b64be8
commit 53ae43b79b
198 changed files with 708 additions and 850 deletions
+2 -2
View File
@@ -5,7 +5,7 @@
* Date: 2018/5/2 0002
* Time: 14:51
*/
declare(strict_types=1);
namespace Snowflake\Cache;
@@ -19,7 +19,7 @@ use Swoole\Coroutine\System;
*/
class File extends Component implements ICache
{
public $path;
public string $path;
/**
* @throws Exception
+1 -1
View File
@@ -5,7 +5,7 @@
* Date: 2018/11/8 0008
* Time: 16:35
*/
declare(strict_types=1);
namespace Snowflake\Cache;
/**
+5 -5
View File
@@ -1,5 +1,5 @@
<?php
declare(strict_types=1);
namespace Snowflake\Cache;
@@ -18,13 +18,13 @@ class Memcached extends Component implements ICache
{
/** @var \Memcached */
private $_memcached;
private \Memcached $_memcached;
public $host = '127.0.0.1';
public string $host = '127.0.0.1';
public $port = 11211;
public int $port = 11211;
public $timeout = 60;
public int $timeout = 60;
/**
+7 -6
View File
@@ -5,6 +5,7 @@
* Date: 2018/4/27 0027
* Time: 11:00
*/
declare(strict_types=1);
namespace Snowflake\Cache;
@@ -253,12 +254,12 @@ use Swoole\Coroutine;
*/
class Redis extends Component
{
public $host = '127.0.0.1';
public $auth = 'xl.2005113426';
public $port = 6973;
public $databases = 0;
public $timeout = -1;
public $prefix = 'idd';
public string $host = '127.0.0.1';
public string $auth = 'xl.2005113426';
public int $port = 6973;
public int $databases = 0;
public int $timeout = -1;
public string $prefix = 'idd';
/**
* @throws Exception