mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
去掉cache类inc和dec方法的expire参数
This commit is contained in:
10
library/think/cache/driver/Wincache.php
vendored
10
library/think/cache/driver/Wincache.php
vendored
@@ -90,12 +90,11 @@ class Wincache
|
||||
* @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 wincache_ucache_inc($name, $step, $expire);
|
||||
return wincache_ucache_inc($name, $step);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -103,12 +102,11 @@ class Wincache
|
||||
* @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 wincache_ucache_dec($name, $step, $expire);
|
||||
return wincache_ucache_dec($name, $step);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user