mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-09 16:12:49 +08:00
修复inc方法
This commit is contained in:
3
library/think/cache/driver/Memcached.php
vendored
3
library/think/cache/driver/Memcached.php
vendored
@@ -125,8 +125,11 @@ class Memcached extends Driver
|
||||
public function inc($name, $step = 1)
|
||||
{
|
||||
$key = $this->getCacheKey($name);
|
||||
if( $this->has($name) ){
|
||||
return $this->handler->increment($key, $step);
|
||||
}
|
||||
return $this->handler->set($key, $step);
|
||||
}
|
||||
|
||||
/**
|
||||
* 自减缓存(针对数值缓存)
|
||||
|
||||
Reference in New Issue
Block a user