RedisKey.java 840 B

12345678910111213141516171819202122232425262728293031323334353637
  1. package com.boman.common.redis;
  2. /**
  3. * @author shiqian
  4. * @date 2021年03月26日 13:25
  5. **/
  6. public class RedisKey {
  7. /**
  8. * 建表的信息存在redis中的key
  9. * eg: table:tableName
  10. */
  11. public static final String TABLE_INFO = "table:";
  12. /**
  13. * 维护redis中每张表的sequence
  14. */
  15. public static final String SEQ = "SEQ:";
  16. /**
  17. * 主表关联的附表存在redis中的key
  18. * eg: relation:tableName
  19. */
  20. public static final String RELATION = "relation:";
  21. /**
  22. * gen_table_relation中的数据存到redis中的key
  23. */
  24. public static final String RELATION_INFO = "relation:info";
  25. /**
  26. * 单据的seq
  27. */
  28. public static final String BILL_SQE = "BILL:SEQ:";
  29. public static final String USER_OPPEN_ID_AND_SESSION_KEY_PREFIX = "openId:sessionKey:";
  30. }