@ThreadSafe public class SoftReferenceSynchronizedLruCache extends SynchronizedLruCache
DEFAULT_INITIAL_CAPACITY, DEFAULT_LOAD_FACTOR| Constructor and Description |
|---|
SoftReferenceSynchronizedLruCache(String name,
int capacity)
Create a new instance with default initial capacity and load factor.
|
SoftReferenceSynchronizedLruCache(String name,
int capacity,
int initialCapacity,
float loadFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.cache.Cache.ValueWrapper |
createEntry(Object value) |
org.springframework.cache.Cache.ValueWrapper |
get(Object key) |
clear, evict, getName, getNativeCache, putpublic SoftReferenceSynchronizedLruCache(String name, int capacity)
name - An arbitrary name of this cache instance.capacity - The maximal capacity.public SoftReferenceSynchronizedLruCache(String name, int capacity, int initialCapacity, float loadFactory)
public org.springframework.cache.Cache.ValueWrapper get(Object key)
get in interface org.springframework.cache.Cacheget in class SynchronizedLruCacheprotected org.springframework.cache.Cache.ValueWrapper createEntry(Object value)
createEntry in class SynchronizedLruCacheCopyright © 2014. All rights reserved.