-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Labels
enhancementNew feature or requestNew feature or requesthelp-wantedThis could use another pair of eyesThis could use another pair of eyesperformance
Description
TO-DO
- MongoDB
- How to implement: https://www.mongodb.com/docs/manual/tutorial/expire-data/
- Implemented in requests-cache: yes. - Redis
- How to implement:Create a new hash withUse HEXPIRE.response_key: TTLand use a Lua server-side script to discard an expired response by the key.
- Implemented in requests-cache: no. - Sqlite: ?
- Filesystem?
Why
- Not necessary to run manually
delete_expired_responses()if a backend supports TTL. - Performance: no redundant network I/O if we only get a value to check that it has not expired.
Pull Request
(a draft) alessio-locatelli#1
croqaz
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp-wantedThis could use another pair of eyesThis could use another pair of eyesperformance