Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Viewing all articles
Browse latest Browse all 2204

Why don't items expire in my Micronaut/Redis cache?

$
0
0

I have a Micronaut cache in Redis configured like this:

redis:  uri: ${REDIS_URL:`redis://localhost`}  caches:    kyc-fenergo-service-token:      expire-after-write: 14m

I have a method annotated like this: @Cacheable(value = "kyc-fenergo-service-token")

After the first call, the value is cached as expected, but it never expires. Any idea why this is the case?


Viewing all articles
Browse latest Browse all 2204

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>