@ThreadSafe public class ConcurrentCommonCache extends Object
Represents a simple key-value cache, which is thread safe and backed by a Map instance
 -  type of the keys -  type of the values| Modifiers | Name | Description | 
|---|---|---|
interface  | 
                            ConcurrentCommonCache.Action | 
                            
| Constructor and description | 
|---|
                                ConcurrentCommonCache
                                ()Constructs a cache with unlimited size  | 
                        
                                ConcurrentCommonCache
                                (int initialCapacity, int maxSize, EvictionStrategy evictionStrategy)Constructs a cache with limited size  | 
                        
                                ConcurrentCommonCache
                                (int initialCapacity, int maxSize)Constructs a LRU cache with the specified initial capacity and max size.  | 
                        
                                ConcurrentCommonCache
                                (int maxSize)Constructs a LRU cache with the default initial capacity(16)  | 
                        
                                ConcurrentCommonCache
                                (Map<K, V> map)Constructs a cache backed by the specified Map instance  | 
                        
| Type Params | Return Type | Name and description | 
|---|---|---|
 | 
                            void | 
                            cleanUpNullReferences(){@inheritDoc}  | 
                        
 | 
                            void | 
                            clear()Clear the cache  | 
                        
 | 
                            Map<K, V> | 
                            clearAll(){@inheritDoc}  | 
                        
 | 
                            boolean | 
                            containsKey(Object key){@inheritDoc}  | 
                        
 | 
                            boolean | 
                            containsValue(Object value) | 
                        
 | 
                            Object | 
                            convertValue(V value){@inheritDoc}  | 
                        
 | 
                            Set<Entry<K, V>> | 
                            entrySet() | 
                        
 | 
                            V | 
                            get(Object key){@inheritDoc}  | 
                        
 | 
                            V | 
                            getAndPut(K key, ValueProvider<? super K, ? extends V> valueProvider){@inheritDoc}  | 
                        
 | 
                            V | 
                            getAndPut(K key, ValueProvider<? super K, ? extends V> valueProvider, boolean shouldCache) | 
                        
 | 
                            boolean | 
                            isEmpty() | 
                        
 | 
                            Set<K> | 
                            keySet() | 
                        
 | 
                            Set<K> | 
                            keys(){@inheritDoc}  | 
                        
 | 
                            V | 
                            put(K key, V value){@inheritDoc}  | 
                        
 | 
                            void | 
                            putAll(Map<? extends K, ? extends V> m) | 
                        
 | 
                            V | 
                            remove(Object key){@inheritDoc}  | 
                        
 | 
                            int | 
                            size(){@inheritDoc}  | 
                        
 | 
                            Collection<V> | 
                            values(){@inheritDoc}  | 
                        
Constructs a cache with unlimited size
Constructs a cache with limited size
initialCapacity -   initial capacity of the cachemaxSize -           max size of the cacheevictionStrategy -  LRU or FIFO, see org.codehaus.groovy.runtime.memoize.EvictableCache.EvictionStrategyConstructs a LRU cache with the specified initial capacity and max size. The LRU cache is slower than LRUCache
initialCapacity -  initial capacity of the LRU cachemaxSize -          max size of the LRU cacheConstructs a LRU cache with the default initial capacity(16)
maxSize -  max size of the LRU cache{@inheritDoc}
Clear the cache
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
Copyright © 2003-2018 The Apache Software Foundation. All rights reserved.