105 lines
2.0 KiB
PHP
105 lines
2.0 KiB
PHP
<?php
|
|
|
|
namespace App\Cache\Redis\Common;
|
|
|
|
class CommonRedisKey
|
|
{
|
|
/**
|
|
* 获取系统配置列表
|
|
* @param $pid
|
|
* @return 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
|
|
*@var string $type
|
|
*/
|
|
public static function getSystemRegionList(string $type = 'all'): string
|
|
{
|
|
return '__system:address:list:'.$type;
|
|
}
|
|
|
|
/**
|
|
* 待删除oss文件队列-根据url
|
|
* @return string
|
|
*/
|
|
public static function getDeleteOssImgListByUrl(): string
|
|
{
|
|
return '__system:deleteOssImgList:url';
|
|
}
|
|
|
|
/**
|
|
* 待删除oss文件队列-根据id
|
|
* @return string
|
|
*/
|
|
public static function getDeleteOssImgListByOssId(): string
|
|
{
|
|
return '__system:deleteOssImgList:oss_id';
|
|
}
|
|
|
|
/**
|
|
* 获取激活的站点列表
|
|
* @return string
|
|
*/
|
|
public static function getActivateSiteList(): string
|
|
{
|
|
return '__system:activate:site:list';
|
|
}
|
|
|
|
/**
|
|
* 获取微信access_token
|
|
* @return string
|
|
*/
|
|
public static function getWxAccessToken(): string
|
|
{
|
|
return '__system:wx:AccessToken:';
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public static function getCycleList(): string
|
|
{
|
|
return '__cycle:list';
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public static function siteListKey(): string
|
|
{
|
|
return '__system:site:list';
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public static function siteLngLatKey(): string
|
|
{
|
|
return '__system:site:lngLat:list';
|
|
}
|
|
} |