-
Notifications
You must be signed in to change notification settings - Fork 39
Description
I am using this library to store cached results from some vendor API and I essentially set up my valueFactory to pull from a database if I already have the result or to go to the vendor api.
As part of the contract term, they set a max length I am allowed to cache a value. Obviously, not a concern for a value that came from the vendor's api, but a potential concern for a value I pulled from the database. Yes, I can check that the value is still within the absolute limit when it is retrieved from the db, but the current write expiry will give it the full length, not the length remaining time to live. Is there anyway to have the Item's time to live be defined against a property of the value?
For example, google geocode results can only be used in a cache or stored for 30 days by contract.