Class ConcurrentBoundedStringCache<STRING_LIKE_TYPE extends CharSequence>

java.lang.Object
io.deephaven.base.string.cache.ConcurrentBoundedStringCache<STRING_LIKE_TYPE>
All Implemented Interfaces:
StringCache<STRING_LIKE_TYPE>

public class ConcurrentBoundedStringCache<STRING_LIKE_TYPE extends CharSequence> extends Object implements StringCache<STRING_LIKE_TYPE>
This cache follows the same design as ConcurrentUnboundedStringCache, but uses a KeyedObjectCache (bounded, concurrent-get, "pseudo-random pseudo-LRU" replacement) for its internal storage. This implementation is thread-safe, and lock-free except for the insertion of new cached Strings on a cache miss.