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
Rafael de F. Ferreira edited this page Jun 30, 2014
·
2 revisions
TTL memoization
The time-to-live cache is one that evicts items that are older than a time-to-live threshold (in milliseconds).
General use
To create a core.memoize TTL-backed memoized function use the clojure.core.memoize/ttl function with an optional seed map or a :ttl/threshold parameter:
(memo/ttl function <seed> <:ttl/threshold number-of-millis>)