feat: redis
This commit is contained in:
@@ -9,11 +9,30 @@ class CommonRedisKey
|
||||
* @param $pid
|
||||
* @return string
|
||||
*/
|
||||
public static function getSystemConfigList($pid): string
|
||||
public static function getSystemConfigListByPid($pid): string
|
||||
{
|
||||
return '__system:config:list:' . $pid;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取配置项所有
|
||||
* @return string
|
||||
*/
|
||||
public static function getSystemConfigList(): string
|
||||
{
|
||||
return '__system:config:list';
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取配置项缓存key
|
||||
* @param $name
|
||||
* @return string
|
||||
*/
|
||||
public static function getConfigKey($name): string
|
||||
{
|
||||
return '__system:config:' . $name;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取系统配置
|
||||
* @return string
|
||||
|
||||
Reference in New Issue
Block a user