提交 | 用户 | 时间
|
fd2207
|
1 |
package com.jcdm.common.constant; |
懒 |
2 |
|
|
3 |
/** |
|
4 |
* 缓存的key 常量 |
|
5 |
* |
|
6 |
* @author jc |
|
7 |
*/ |
|
8 |
public class CacheConstants |
|
9 |
{ |
|
10 |
/** |
|
11 |
* 登录用户 redis key |
|
12 |
*/ |
|
13 |
public static final String LOGIN_TOKEN_KEY = "login_tokens:"; |
|
14 |
|
|
15 |
/** |
|
16 |
* 验证码 redis key |
|
17 |
*/ |
|
18 |
public static final String CAPTCHA_CODE_KEY = "captcha_codes:"; |
|
19 |
|
|
20 |
/** |
|
21 |
* 参数管理 cache key |
|
22 |
*/ |
|
23 |
public static final String SYS_CONFIG_KEY = "sys_config:"; |
|
24 |
|
|
25 |
/** |
|
26 |
* 字典管理 cache key |
|
27 |
*/ |
|
28 |
public static final String SYS_DICT_KEY = "sys_dict:"; |
|
29 |
|
|
30 |
/** |
|
31 |
* 防重提交 redis key |
|
32 |
*/ |
|
33 |
public static final String REPEAT_SUBMIT_KEY = "repeat_submit:"; |
|
34 |
|
|
35 |
/** |
|
36 |
* 限流 redis key |
|
37 |
*/ |
|
38 |
public static final String RATE_LIMIT_KEY = "rate_limit:"; |
|
39 |
|
|
40 |
/** |
|
41 |
* 登录账户密码错误次数 redis key |
|
42 |
*/ |
|
43 |
public static final String PWD_ERR_CNT_KEY = "pwd_err_cnt:"; |
|
44 |
} |