Package io.higson.runtime.helper.parser
Class LimitCache<K,V>
java.lang.Object
io.higson.runtime.helper.parser.LimitCache<K,V>
- Type Parameters:
K-V-
This is a very fast cache that implements memoization of pure functions.
There is no eviction or expiration at all, so it can only be used to handle
pure functions, i.e. functions that always give the same output for the same input.
After reaching approximately [maxSize] elements the cache is closed and ignores new entries.
In steady state the get() method is free from thread contention.
-
Constructor Summary
Constructors -
Method Summary