51 lines
1.0 KiB
PHP
51 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace App\Cache\Redis\Common;
|
|
|
|
class CommonRedisKey
|
|
{
|
|
/**
|
|
* @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:';
|
|
}
|
|
} |