Core
Core

Reputation: 840

Ehcache midnight/nightly expiration strategy

It's not immediately obvious to me how to set EhCache to expire an entire cache nightly/at midnight. I can easily do this programmatically via a job of some sort, but I wanted to know if there was a more "ehcache" way of doing it.

Thanks in advance!

Upvotes: 1

Views: 1375

Answers (1)

mtpettyp
mtpettyp

Reputation: 5569

It sounds like you should implement it using a Cache Extension

"Cache Extensions are suitable for timing services, where you want to create a timer to perform cache operations."

Upvotes: 2

Related Questions