更新内核,API接口开发的一些尝试,后期会增加API接口开发这块
This commit is contained in:
5
core/library/think/cache/driver/Memcache.php
vendored
5
core/library/think/cache/driver/Memcache.php
vendored
@@ -113,7 +113,10 @@ class Memcache extends Driver
|
||||
public function inc($name, $step = 1)
|
||||
{
|
||||
$key = $this->getCacheKey($name);
|
||||
return $this->handler->increment($key, $step);
|
||||
if ($this->handler->get($key)) {
|
||||
return $this->handler->increment($key, $step);
|
||||
}
|
||||
return $this->handler->set($key, $step);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user