-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed 'src/redis/' changes from d0f9102..61469f2
61469f2 fix #82 6faa845 Fix Travis Ci (#190) db8883f 修改timeout为float,增加协程Redis timeout配置 (#188) 395dd1d Fix php7.0 travis ci failed (#167) 1f84117 完善Redis代码提醒 (#165) bed4d1b 修改 Redis::ZRangeByScore 与 Redis::zRevRangeByScore 入参有误的BUG (#163 (comment)) git-subtree-dir: src/redis git-subtree-split: 61469f25a5e48f11188de9da480e91822f7ff3de
- Loading branch information
Showing
15 changed files
with
236 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
namespace SwoftTest\Redis\Testing\Clients; | ||
|
||
use Swoft\Redis\Redis; | ||
use SwoftTest\Redis\Testing\Pool\TimeoutPool; | ||
use Swoft\Bean\Annotation\Bean; | ||
|
||
/** | ||
* Class TimeoutRedis | ||
* @Bean | ||
* @package SwoftTest\Redis\Testing\Clients | ||
*/ | ||
class TimeoutRedis extends Redis | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
protected $poolName = TimeoutPool::class; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
namespace SwoftTest\Redis\Testing\Pool\Config; | ||
|
||
use Swoft\Redis\Pool\Config\RedisPoolConfig; | ||
use Swoft\Bean\Annotation\Bean; | ||
|
||
/** | ||
* Class TimeoutPoolConfig | ||
* @Bean | ||
* @package SwoftTest\Redis\Testing\Pool\Config | ||
*/ | ||
class TimeoutPoolConfig extends RedisPoolConfig | ||
{ | ||
/** | ||
* the time of connect timeout | ||
* @var int | ||
*/ | ||
protected $timeout = 1; | ||
|
||
/** | ||
* the addresses of connection | ||
* @var array | ||
*/ | ||
protected $uri = [ | ||
'echo.swoft.org:6379' | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
namespace SwoftTest\Redis\Testing\Pool; | ||
|
||
use Swoft\Redis\Pool\RedisPool; | ||
use Swoft\Bean\Annotation\Bean; | ||
use Swoft\Bean\Annotation\Inject; | ||
use Swoft\Bean\Annotation\Pool; | ||
use SwoftTest\Redis\Testing\Pool\Config\TimeoutPoolConfig; | ||
|
||
/** | ||
* Class TimeoutPool | ||
* @Pool | ||
* @package SwoftTest\Redis\Testing\Pool | ||
*/ | ||
class TimeoutPool extends RedisPool | ||
{ | ||
/** | ||
* Config | ||
* | ||
* @Inject() | ||
* @var TimeoutPoolConfig | ||
*/ | ||
protected $poolConfig; | ||
} |
Oops, something went wrong.