111
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
namespace Kiri\Cache\Base;
|
namespace Kiri\Cache\Base;
|
||||||
|
|
||||||
use Http\Context\Context;
|
use Http\Context\Context;
|
||||||
|
use Kiri\Abstracts\Logger;
|
||||||
use Kiri\Events\EventProvider;
|
use Kiri\Events\EventProvider;
|
||||||
use Kiri\Exception\RedisConnectException;
|
use Kiri\Exception\RedisConnectException;
|
||||||
use Kiri\Kiri;
|
use Kiri\Kiri;
|
||||||
@@ -73,8 +74,9 @@ class Redis implements StopHeartbeatCheck
|
|||||||
$this->_timer = Timer::tick(1000, function () {
|
$this->_timer = Timer::tick(1000, function () {
|
||||||
try {
|
try {
|
||||||
if (env('state','start') == 'exit') {
|
if (env('state','start') == 'exit') {
|
||||||
echo 'timer end.' . PHP_EOL;
|
Kiri::getDi()->get(Logger::class)->critical('timer end');
|
||||||
}
|
$this->stopHeartbeatCheck();
|
||||||
|
}
|
||||||
if (time() - $this->_last > 10 * 60) {
|
if (time() - $this->_last > 10 * 60) {
|
||||||
$this->stopHeartbeatCheck();
|
$this->stopHeartbeatCheck();
|
||||||
$this->pdo = null;
|
$this->pdo = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user