rack-cache icon indicating copy to clipboard operation
rack-cache copied to clipboard

[Feature] Use MetaStore/EntityStore native expiration

Open rykov opened this issue 13 years ago • 1 comments

Is there any interest in optionally passing 'max-age' to the underlying datastore on write to automatically expire stale data? It has potential for memory saving if long-tail entries get cleaned up before waiting for a subsequent request to be invalidated & replaced.

rykov avatar Apr 07 '11 01:04 rykov

This is almost a necessity. We just realized that our cache machines became full from requests that happened a long time ago and has never been opened again. If the server pass "This page expires on the following date", the underlying store should exorcise it when the time comes.

We're still searching for a way to fix our machines again. :-(

Mange avatar Jan 07 '13 14:01 Mange