mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
4
library/think/cache/driver/Redis.php
vendored
4
library/think/cache/driver/Redis.php
vendored
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user