* [refac] resort methods.

This commit is contained in:
liugang
2024-11-20 15:42:49 +08:00
committed by 朱金勇
parent b97a8abe3b
commit 8bd0879e88
+15 -16
View File
@@ -681,11 +681,25 @@ class baseMao
return $pairs;
}
/**
* 设置label.
* Set label.
*
* @param string $key
* @access public
* @return object
*/
public function label(string $label)
{
$this->currentLabel = $label;
return $this;
}
/**
* 通过Key获取值
* Get value by key.
*
*
* @param string $key
* @param mixed ...$arguments
* @access public
@@ -705,21 +719,6 @@ class baseMao
return $this->app->redis->get($key);
}
/**
* 设置label.
* Set label.
*
* @param string $key
* @access public
* @return object
*/
public function label(string $label)
{
$this->currentLabel = $label;
return $this;
}
/**
* 根据 key 设置缓存。
* Set cache by key.