|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||
See:
Description
| Interface Summary | |
|---|---|
| Cache<K,V> | Memory-Sensitive Cache. |
| KeyedReference<K,V> | Reference with an attached key to be used in a cache. |
| Class Summary | |
|---|---|
| BaseCache<K,V> | Memory-Sensitive Cache base implementation. |
| SoftCache<K,V> | Memory-Sensitive Cache Based on SoftReferences Entries in a SoftCache can be garbage collected if, and only if, the JVM considers that more memory is needed. |
| SoftKeyedReference<K,V> | KeyedReference implementation based on
SoftReference. |
| WeakCache<K,V> | Memory-Sensitive Cache Based on WeakReferences Entries in a WeakCache will be garbage collected as soon as there are no hard references left. |
| WeakKeyedReference<K,V> | KeyedReference implementation based on WeakReference. |
| Enum Summary | |
|---|---|
| Cache.Operation | The operations defined in the Cache interface. |
Provides the Cache interface and its main implementations.
The picture below shows the UML class diagram of this package:

Package UML Class Diagram
The basic usage of this package is fairly simple. If we want an
in-memory cache
of a certain class Data, keyed with
String identifiers, we declare it as:
Cache<String, Data> cache = new SoftCache<String, Data>(); ...
|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||