改名
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* Date: 2018/11/8 0008
|
||||
* Time: 16:35
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
namespace Snowflake\Cache;
|
||||
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user