think\cache\driver\Memcached::inc PHP Method

inc() public method

自增缓存(针对数值缓存)
public inc ( string $name, integer $step = 1 ) : false | integer
$name string 缓存变量名
$step integer 步长
return false | integer
    public function inc($name, $step = 1)
    {
        $key = $this->getCacheKey($name);
        return $this->handler->increment($key, $step);
    }