去掉cache类inc和dec方法的expire参数

This commit is contained in:
thinkphp
2016-07-31 09:56:47 +08:00
parent 609d3c76a7
commit 01fc6eda1c
9 changed files with 30 additions and 48 deletions

View File

@@ -90,12 +90,11 @@ class Xcache
* @access public
* @param string $name 缓存变量名
* @param int $step 步长
* @param int $expire 有效时间 0为永久
* @return false|int
*/
public function inc($name, $step = 1, $expire = null)
public function inc($name, $step = 1)
{
return xcache_inc($name, $step, $expire);
return xcache_inc($name, $step);
}
/**
@@ -103,12 +102,11 @@ class Xcache
* @access public
* @param string $name 缓存变量名
* @param int $step 步长
* @param int $expire 有效时间 0为永久
* @return false|int
*/
public function dec($name, $step = 1, $expire = null)
public function dec($name, $step = 1)
{
return xcache_dec($name, $step, $expire);
return xcache_dec($name, $step);
}
/**