public class CacheFactory<K extends java.lang.Comparable,V> extends java.lang.Object
A factory of caches with shared references. Can be helpful when using multiple threads.
|Constructor and Description|
Create a CacheFactory
|Modifier and Type||Method and Description|
Create a cache which is not thread safe, but which shares references with other caches created by the same factory.
public CacheFactory(int maxCacheSize)
maxCacheSize- Maximum size of each cache. I.E. Older entries are purged.