修正缓存驱动

This commit is contained in:
thinkphp
2016-08-05 18:08:18 +08:00
parent 96762dd293
commit e9ba9dc1ab
5 changed files with 20 additions and 12 deletions

View File

@@ -115,6 +115,7 @@ class Redis
*/
public function inc($name, $step = 1)
{
$name = $this->options['prefix'] . $name;
return $this->handler->incrby($name, $step);
}
@@ -127,6 +128,7 @@ class Redis
*/
public function dec($name, $step = 1)
{
$name = $this->options['prefix'] . $name;
return $this->handler->decrby($name, $step);
}