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 least-used memoization strategy (sometimes called "Least Frequently Used") is a variant of LRU that evicts items that are used least frequently once its threshold has been exceeded.
In simple terms, the LU cache will remove the element in the cache that has been accessed the least, regardless of time.
General use
To create a core.memoize LU-backed memoized function use the clojure.core.memoize/lu function with an optional seed map or a :lu/threshold parameter: