`basic_cache` makes a cache that does not expire old entries. It should be used in situations where you know the number of things to remember is bounded.
Construct a cache with least-recently-used policy.
permanent_cache()lru_cache(size = 10000)
A function f(key, value) which takes a string in the first parameter and a lazily evaluated value in the second. `f` will use the string key to retrieve a value from the cache, or return the matching item from the cache, or force the second argument and return that, remembering the result on future calls.
When the number of entries in the cache exceeds size
, the least
recently accessed entries are removed.
The maximum number of results to keep.