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
The TLRUCache docs currently contain only an example for supplying a custom ttu function using datetime and a custom timer argument.
For clarity, an example using the default timer=time.monotonic and a ttu function returning a numeric value in seconds should be also added before that, to avoid confusion regarding the types involved in cache expiration. Maybe something like this should also be added to the TTLCache docs.
Also unit tests using alternative "time" types should be provided.
The text was updated successfully, but these errors were encountered:
The
TLRUCache
docs currently contain only an example for supplying a customttu
function usingdatetime
and a customtimer
argument.For clarity, an example using the default
timer=time.monotonic
and attu
function returning a numeric value in seconds should be also added before that, to avoid confusion regarding the types involved in cache expiration. Maybe something like this should also be added to theTTLCache
docs.Also unit tests using alternative "time" types should be provided.
The text was updated successfully, but these errors were encountered: