2023-10-16 03:40:13 +00:00
|
|
|
package com.ruoyi.common.constant;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 缓存的key 常量
|
|
|
|
*
|
|
|
|
* @author ruoyi
|
|
|
|
*/
|
|
|
|
public class CacheConstants
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* 登录用户 redis key
|
|
|
|
*/
|
2024-04-23 21:49:43 +00:00
|
|
|
public static final String LOGIN_TOKEN_KEY = "login_tokens";
|
2023-10-16 03:40:13 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 验证码 redis key
|
|
|
|
*/
|
2024-04-23 21:49:43 +00:00
|
|
|
public static final String CAPTCHA_CODE_KEY = "captcha_codes";
|
2023-10-16 03:40:13 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 参数管理 cache key
|
|
|
|
*/
|
2024-04-23 21:49:43 +00:00
|
|
|
public static final String SYS_CONFIG_KEY = "sys_config";
|
2023-10-16 03:40:13 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 字典管理 cache key
|
|
|
|
*/
|
2024-04-23 21:49:43 +00:00
|
|
|
public static final String SYS_DICT_KEY = "sys_dict";
|
2023-10-16 03:40:13 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 防重提交 redis key
|
|
|
|
*/
|
2024-04-23 21:49:43 +00:00
|
|
|
public static final String REPEAT_SUBMIT_KEY = "repeat_submit";
|
2023-10-16 03:40:13 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 限流 redis key
|
|
|
|
*/
|
2024-04-23 21:49:43 +00:00
|
|
|
public static final String RATE_LIMIT_KEY = "rate_limit";
|
2023-10-16 03:40:13 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 登录账户密码错误次数 redis key
|
|
|
|
*/
|
2024-04-23 21:49:43 +00:00
|
|
|
public static final String PWD_ERR_CNT_KEY = "pwd_err_cnt";
|
2023-10-16 03:40:13 +00:00
|
|
|
}
|