内核更新
This commit is contained in:
2
core/library/think/cache/driver/Redis.php
vendored
2
core/library/think/cache/driver/Redis.php
vendored
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user