修复Redis删除数据兼容性BUG

Signed-off-by: Karson <karsonzhang@163.com>
This commit is contained in:
Karson
2021-03-17 17:43:15 +08:00
parent 36676c61dc
commit 7d08e64b4d
2 changed files with 3 additions and 3 deletions

View File

@@ -162,7 +162,7 @@ class Redis extends Driver
*/ */
public function rm($name) public function rm($name)
{ {
return $this->handler->delete($this->getCacheKey($name)); return $this->handler->del($this->getCacheKey($name));
} }
/** /**
@@ -177,7 +177,7 @@ class Redis extends Driver
// 指定标签清除 // 指定标签清除
$keys = $this->getTagItem($tag); $keys = $this->getTagItem($tag);
foreach ($keys as $key) { foreach ($keys as $key) {
$this->handler->delete($key); $this->handler->del($key);
} }
$this->rm('tag_' . md5($tag)); $this->rm('tag_' . md5($tag));
return true; return true;

View File

@@ -112,7 +112,7 @@ class Redis extends SessionHandler
*/ */
public function destroy($sessID) public function destroy($sessID)
{ {
return $this->handler->delete($this->config['session_name'] . $sessID) > 0; return $this->handler->del($this->config['session_name'] . $sessID) > 0;
} }
/** /**