noripyt / django-cachalot

No effort, no worry, maximum performance.
http://django-cachalot.readthedocs.io
BSD 3-Clause "New" or "Revised" License
1.23k stars 151 forks source link

Renew timeout when query is accessed via cache #254

Open federicoemartinez opened 7 months ago

federicoemartinez commented 7 months ago

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