Package com.squarespace.cldrengine.utils
Class Cache<V>
- java.lang.Object
-
- com.squarespace.cldrengine.utils.Cache<V>
-
public class Cache<V> extends java.lang.Object
Links an arrow function to an LRU cache. The function converts a string to a value of type T. The string itself is used as the cache key. Examples: * Caching a number or date pattern. The cache key is the string representation of the pattern. * Caching any object that is expensive to create, where the cache key identifies the type of object to cache. Ported from @phensley/cldr-utils src/cache.ts Modified to use ConcurrentHashMap
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
get(java.lang.String raw)
int
size()
-