提交 5f13b9a7 编写于 作者: lzc828's avatar lzc828

redis pools bug

上级 4278d316
......@@ -84,13 +84,13 @@ class Redis extends Cache
try {
$rs = $this->pop();
$val = $rs->get($this->getTagKey($key, $tags));
$this->push($rs);
if ((!$val) && $closure) {
$val = $closure();
$this->set($key, $val, $ttl, $tags);
} else if ($val) {
$val = unserialize($val);
}
$this->push($rs);
$this->setRetryCount();
return $val;
} catch (\RedisException $e) {
......
......@@ -10,6 +10,6 @@ if (!defined('_DEBUG_')) {
define('_DEBUG_', false);
}
define('_ONE_V_', '1.5.9');
define('_ONE_V_', '1.6.0');
require __DIR__ . '/helper.php';
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册