django-cachalot icon indicating copy to clipboard operation
django-cachalot copied to clipboard

Renew timeout when query is accessed via cache

Open federicoemartinez opened this issue 6 months ago • 0 comments

If I understood correctly, every query is cached. If we configure a timeout and we use for instance redis, the key will expire after the timeout.

My question is: Is the timeout refreshed when a query is accessed again? I think this would be useful as it would allow to set a "low" timeout to avoid redis getting full of one time queries, but the most common ones will remain always in cache

federicoemartinez avatar Feb 11 '24 19:02 federicoemartinez