class MemoryCache<K,V> extends Object
WeakReferences to avoid memory leaks.| Modifier and Type | Field and Description |
|---|---|
private Map<K,WeakReference<V>> |
cache |
private ReentrantLock |
lock |
| Constructor and Description |
|---|
MemoryCache()
The constructor.
|
private final ReentrantLock lock
private final Map<K,WeakReference<V>> cache
Copyright © 2001–2016 mmm-Team. All rights reserved.