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.

94 lines
2.5 KiB

7 months ago
namespace Common.Const
{
/// <summary>
/// 缓存相关常量
/// </summary>
public class RedisConstMgr
{
///// <summary>
///// 用户缓存
///// </summary>
//public const string KeyUser = "sys_user:";
///// <summary>
///// 用户菜单缓存
///// </summary>
//public const string KeyUserMenu = "sys_user_menu:";
/// <summary>
/// 用户权限缓存(按钮集合)
/// </summary>
public const string KeyUserButton = "sys_user_button:";
/// <summary>
/// 用户机构缓存
/// </summary>
public const string KeyUserOrg = "sys_user_org:";
/// <summary>
/// 角色最大数据范围缓存
/// </summary>
public const string KeyRoleMaxDataScope = "sys_role_maxDataScope:";
/// <summary>
/// 在线用户缓存
/// </summary>
public const string KeyUserOnline = "sys_user_online:";
/// <summary>
/// 图形验证码缓存
/// </summary>
public const string KeyVerCode = "sys_verCode:";
/// <summary>
/// 手机验证码缓存
/// </summary>
public const string KeyPhoneVerCode = "sys_phoneVerCode:";
/// <summary>
/// 密码错误次数缓存
/// </summary>
public const string KeyErrorPasswordCount = "sys_errorPasswordCount:";
/// <summary>
/// App密码错误次数缓存
/// </summary>
public const string AppKeyErrorPasswordCount = "app_sys_errorPasswordCount:";
7 months ago
/// <summary>
/// 租户缓存
/// </summary>
public const string KeyTenant = "sys_tenant";
/// <summary>
/// 常量下拉框
/// </summary>
public const string KeyConst = "sys_const:";
/// <summary>
/// 所有缓存关键字集合
/// </summary>
public const string KeyAll = "sys_keys";
/// <summary>
/// SqlSugar二级缓存
/// </summary>
public const string SqlSugar = "sys_sqlSugar:";
/// <summary>
/// 开放接口身份缓存
/// </summary>
public const string KeyOpenAccess = "sys_open_access:";
/// <summary>
/// 开放接口身份随机数缓存
/// </summary>
public const string KeyOpenAccessNonce = "sys_open_access_nonce:";
/// <summary>
/// 黑名单
/// </summary>
public const string KeyBlacklist = "sys_blacklist:";
}
}