* [refac] resort methods.
This commit is contained in:
+15
-16
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user