Admin.net框架
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.5 KiB

5 days ago
namespace Admin.NET.Core;
/// <summary>
/// 缓存相关常量
/// </summary>
public class CacheConst
{
/// <summary>
/// 用户缓存
/// </summary>
public const string KeyUser = "user:";
/// <summary>
/// 菜单缓存
/// </summary>
public const string KeyMenu = "menu:";
/// <summary>
/// 权限缓存(按钮集合)
/// </summary>
public const string KeyPermission = "permission:";
/// <summary>
/// 机构Id集合缓存
/// </summary>
public const string KeyOrgIdList = "org:";
/// <summary>
/// 角色最大数据范围缓存
/// </summary>
public const string KeyMaxDataScope = "maxDataScope:";
/// <summary>
/// 验证码缓存
/// </summary>
public const string KeyVerCode = "verCode:";
/// <summary>
/// 所有缓存关键字集合
/// </summary>
public const string KeyAll = "keys";
/// <summary>
/// 定时任务缓存
/// </summary>
public const string KeyTimer = "timer:";
/// <summary>
/// 在线用户缓存
/// </summary>
public const string KeyOnlineUser = "onlineuser:";
/// <summary>
/// 常量下拉框
/// </summary>
public const string KeyConst = "const:";
/// <summary>
/// swagger登录缓存
/// </summary>
public const string SwaggerLogin = "swaggerLogin:";
/// <summary>
/// 租户缓存
/// </summary>
public const string KeyTenant = "tenant:list";
}