CacheKey.java 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * Copyright 2019-2020 the original author or authors.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package me.zhengjie.utils;
  17. /**
  18. * @author: liaojinlong
  19. * @date: 2020/6/11 15:49
  20. * @apiNote: 关于缓存的Key集合
  21. */
  22. public interface CacheKey {
  23. /**
  24. * 用户
  25. */
  26. String USER_ID = "user::id:";
  27. /**
  28. * 数据
  29. */
  30. String DATA_USER = "data::user:";
  31. /**
  32. * 菜单
  33. */
  34. String MENU_ID = "menu::id:";
  35. String MENU_USER = "menu::user:";
  36. /**
  37. * 角色授权
  38. */
  39. String ROLE_AUTH = "role::auth:";
  40. /**
  41. * 角色信息
  42. */
  43. String ROLE_ID = "role::id:";
  44. /**
  45. * 部门
  46. */
  47. String DEPT_ID = "dept::id:";
  48. /**
  49. * 岗位
  50. */
  51. String JOB_ID = "job::id:";
  52. /**
  53. * 数据字典
  54. */
  55. String DICT_NAME = "dict::name:";
  56. }