mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 22:52:49 +08:00
1)修改了一些注释的错误参数类型和返回类型
2)修改了一些无意义的变量名 3)本次 commit 没有逻辑上的变动
This commit is contained in:
6
library/think/cache/driver/Db.php
vendored
6
library/think/cache/driver/Db.php
vendored
@@ -87,7 +87,7 @@ class Db
|
||||
* @param string $name 缓存变量名
|
||||
* @param mixed $value 存储数据
|
||||
* @param integer $expire 有效时间(秒)
|
||||
* @return boolen
|
||||
* @return boolean
|
||||
*/
|
||||
public function set($name, $value, $expire = null)
|
||||
{
|
||||
@@ -144,7 +144,7 @@ class Db
|
||||
* 删除缓存
|
||||
* @access public
|
||||
* @param string $name 缓存变量名
|
||||
* @return boolen
|
||||
* @return boolean
|
||||
*/
|
||||
public function rm($name)
|
||||
{
|
||||
@@ -155,7 +155,7 @@ class Db
|
||||
/**
|
||||
* 清除缓存
|
||||
* @access public
|
||||
* @return boolen
|
||||
* @return boolean
|
||||
*/
|
||||
public function clear()
|
||||
{
|
||||
|
||||
8
library/think/cache/driver/File.php
vendored
8
library/think/cache/driver/File.php
vendored
@@ -48,7 +48,7 @@ class File
|
||||
/**
|
||||
* 初始化检查
|
||||
* @access private
|
||||
* @return boolen
|
||||
* @return boolean
|
||||
*/
|
||||
private function init()
|
||||
{
|
||||
@@ -125,7 +125,7 @@ class File
|
||||
* @param string $name 缓存变量名
|
||||
* @param mixed $value 存储数据
|
||||
* @param int $expire 有效时间 0为永久
|
||||
* @return boolen
|
||||
* @return boolean
|
||||
*/
|
||||
public function set($name, $value, $expire = null)
|
||||
{
|
||||
@@ -172,7 +172,7 @@ class File
|
||||
* 删除缓存
|
||||
* @access public
|
||||
* @param string $name 缓存变量名
|
||||
* @return boolen
|
||||
* @return boolean
|
||||
*/
|
||||
public function rm($name)
|
||||
{
|
||||
@@ -183,7 +183,7 @@ class File
|
||||
* 清除缓存
|
||||
* @access public
|
||||
* @param string $name 缓存变量名
|
||||
* @return boolen
|
||||
* @return boolean
|
||||
*/
|
||||
public function clear()
|
||||
{
|
||||
|
||||
1
library/think/cache/driver/Memcache.php
vendored
1
library/think/cache/driver/Memcache.php
vendored
@@ -30,6 +30,7 @@ class Memcache
|
||||
* 架构函数
|
||||
* @param array $options 缓存参数
|
||||
* @access public
|
||||
* @throws Exception
|
||||
*/
|
||||
public function __construct($options = [])
|
||||
{
|
||||
|
||||
8
library/think/cache/driver/Secache.php
vendored
8
library/think/cache/driver/Secache.php
vendored
@@ -225,7 +225,7 @@ class SecacheClient
|
||||
|
||||
public function fetch($key, &$return)
|
||||
{
|
||||
|
||||
$locked = false;
|
||||
if ($this->lock(false)) {
|
||||
$locked = true;
|
||||
}
|
||||
@@ -275,7 +275,7 @@ class SecacheClient
|
||||
*
|
||||
* @param mixed $is_block 是否阻塞
|
||||
* @access public
|
||||
* @return void
|
||||
* @return bool
|
||||
*/
|
||||
public function lock($is_block, $whatever = false)
|
||||
{
|
||||
@@ -287,7 +287,7 @@ class SecacheClient
|
||||
* 如果flock不管用,请继承本类,并重载此方法
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
* @return bool
|
||||
*/
|
||||
public function unlock()
|
||||
{
|
||||
@@ -400,7 +400,7 @@ class SecacheClient
|
||||
*
|
||||
* @param mixed $key
|
||||
* @access public
|
||||
* @return void
|
||||
* @return mixed
|
||||
*/
|
||||
public function search($key, &$pos)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user