org.jscience.util.cache
Interface Cache
- All Known Implementing Classes:
- FixedSizeCache, SoftReferenceCache
public interface Cache
Interface for managing caches of objects. Caches serve as factories for
CacheReference objects. These references can be cleared at any time after
creation, using heuristics determined by the Cache implementation.
- Since:
- 1.1
makeReference
CacheReference makeReference(java.lang.Object o)
- Construct a temporary reference to an object. The reference
persists until it becomes dereferenced itself, it is explicitly cleared
by the user, or the cache determines that it is a candidate for
disposal.
- Parameters:
o - DOCUMENT ME!
- Returns:
- DOCUMENT ME!