@ThreadSafe public final class LRUCache extends Object
A cache backed by a ConcurrentLinkedHashMap
| Constructor and description | 
|---|
                                LRUCache
                                (int maxCacheSize) | 
                        
| Type Params | Return Type | Name and description | 
|---|---|---|
 | 
                            void | 
                            cleanUpNullReferences()Remove all entries holding SoftReferences to gc-evicted objects.  | 
                        
 | 
                            V | 
                            get(K key) | 
                        
 | 
                            V | 
                            getAndPut(K key, ValueProvider<? super K, ? extends V> valueProvider)The implementation of `getAndPut` is not atomic  | 
                        
 | 
                            V | 
                            put(K key, V value) | 
                        
Remove all entries holding SoftReferences to gc-evicted objects.
The implementation of `getAndPut` is not atomic
Copyright © 2003-2018 The Apache Software Foundation. All rights reserved.