项目作者: gustavotemple

项目描述 :
PoC Redis cache TTL
高级语言: Dockerfile
项目地址: git://github.com/gustavotemple/poc-redis-cache-ttl.git
创建时间: 2020-06-05T21:04:03Z
项目社区:https://github.com/gustavotemple/poc-redis-cache-ttl

开源协议:MIT License

下载


PoC Redis cache TTL

Multi RedisCacheManager approach, better alternative than the spring.cache.redis.time-to-live configuration.

Build & Run:

  • docker rm -v <OLD_CONTAINERS>
  • ./mvnw clean package dockerfile:build
  • docker-compose up

References:

https://stackoverflow.com/questions/51269477/java-spring-redis-set-time-to-live-with-annotation/51308129

https://stackoverflow.com/questions/51054774/how-to-configure-different-ttl-for-each-redis-cache-when-using-cacheable-in-spr