You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Redis
- How to implement: Create a new hash with response_key: TTL and use a Lua server-side script to discard an expired response by the key. Use HEXPIRE.
- 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.
TO-DO
- How to implement: https://www.mongodb.com/docs/manual/tutorial/expire-data/
- Implemented in requests-cache: yes.
- How to implement:
Create a new hash withUse HEXPIRE.response_key: TTL
and use a Lua server-side script to discard an expired response by the key.- Implemented in requests-cache: no.
Why
delete_expired_responses()
if a backend supports TTL.Pull Request
(a draft) alessio-locatelli#1
The text was updated successfully, but these errors were encountered: