Question

I want to implement cache manager,for that I want to clear the cache after 15 days, how to implement this? How will I get to know 15 days completed or not, How I can achieve this any idea?

Was it helpful?

Solution

The broad strokes: Store your desired cache expiration date, set a timer to go off on that date, and check on startup whether you're past the date. If either the timer goes off or the startup check is positive, clear the cache.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top