CacheNames.java 646 B

12345678910111213141516171819202122
  1. package top.haijunit.train.domain.constant;
  2. /**
  3. * @author zhanghaijun
  4. * @date 2023/12/18 13:20
  5. * @description 缓存组名称常量
  6. * <p>
  7. * key 格式为 cacheNames#ttl#maxIdleTime#maxSize
  8. * <p>
  9. * ttl 过期时间 如果设置为0则不过期 默认为0
  10. * maxIdleTime 最大空闲时间 根据LRU算法清理空闲数据 如果设置为0则不检测 默认为0
  11. * maxSize 组最大长度 根据LRU算法清理溢出数据 如果设置为0则无限长 默认为0
  12. * <p>
  13. * 例子: test#60s、test#0#60s、test#0#1m#1000、test#1h#0#500
  14. */
  15. public interface CacheNames {
  16. String SECTION = "section";
  17. String LICENSE = "license";
  18. }