Skip to content

Commit

Permalink
修正Redis驱动
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Dec 23, 2018
1 parent 15aae57 commit b56d75a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion library/think/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/
class App extends Container
{
const VERSION = '5.1.31 LTS';
const VERSION = '5.1.32 LTS';

/**
* 当前模块路径
Expand Down
2 changes: 1 addition & 1 deletion library/think/cache/driver/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public function clear($tag = null)
{
if ($tag) {
// 指定标签清除
$keys = $this->getTagItems($tag);
$keys = $this->getTagItem($tag);

$this->handler->del($keys);

Expand Down
6 changes: 3 additions & 3 deletions library/think/cache/driver/Wincache.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ public function clear($tag = null)
$tagName = $this->getTagkey($tag);
$this->rm($tagName);
return true;
} else {
$this->writeTimes++;
return wincache_ucache_clear();
}

$this->writeTimes++;
return wincache_ucache_clear();
}

}
1 change: 1 addition & 0 deletions library/think/cache/driver/Xcache.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ public function clear($tag = null)
foreach ($keys as $key) {
xcache_unset($key);
}

$this->rm($this->getTagKey($tag));
return true;
}
Expand Down

0 comments on commit b56d75a

Please sign in to comment.