Digital Office Automation System Backend
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.

CacheConstants.java 882B

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