CacheManagerProperties.java 619 B

12345678910111213141516171819202122232425262728293031
  1. package com.persagy.common.redis.properties;
  2. import lombok.Getter;
  3. import lombok.Setter;
  4. import org.springframework.boot.context.properties.ConfigurationProperties;
  5. import java.util.List;
  6. /**
  7. * @author zlt
  8. * @date 2019/1/6
  9. */
  10. @Setter
  11. @Getter
  12. @ConfigurationProperties(prefix = "integrated.cache-manager")
  13. public class CacheManagerProperties {
  14. private List<CacheConfig> configs;
  15. @Setter
  16. @Getter
  17. public static class CacheConfig {
  18. /**
  19. * cache key
  20. */
  21. private String key;
  22. /**
  23. * 过期时间,sec
  24. */
  25. private long second = 60;
  26. }
  27. }