Details
-
Type:
Enhancement
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Patch:Code and Test
Description
Create a second arity for miss that takes an options map. In the TTLCache implementation use the :ttl key from the options to set a non-default ttl for a cache object. All other implementations will disregard the options and call the original version of miss.
Here's the use case that motivated this:
We want to store oauth tokens so that we do not constantly have to make service calls to verify the token. The response on this service call has the expiration time of the token. We want to set our ttl to expire when the oauth token expires.