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
A First-In-First-Out memoization cache is one that uses queuing logic for its backing store, expunging the elements at the front of the queue when a predetermined threshold is exceeded.
In simple terms, the FIFO memoization cache will remove the element that has been in the cache the longest.
General use
To create a core.memoize FIFO-backed memoized function use the clojure.core.memoize/fifo function with an optional seed map or a :fifo/threshold parameter:
(memo/fifo function <seed> <:fifo/threshold number>)