Protomatter Classes v1.1.6

com.protomatter.util
Interface Cache

All Known Implementing Classes:
SoftReferenceCache

public interface Cache

A generic interface for caches.


Method Summary
 void clear()
          Clear the entire cache.
 void clear(java.lang.Object key)
          Clear the value at the given location in the cache.
 java.lang.Object get(java.lang.Object key)
          Get the value at a given location in the cache.
 void put(java.lang.Object key, java.lang.Object val)
          Put a value into the given location in the cache.
 

Method Detail

put

public void put(java.lang.Object key,
                java.lang.Object val)
Put a value into the given location in the cache.

get

public java.lang.Object get(java.lang.Object key)
Get the value at a given location in the cache. If the value has expired or does not exist, this method will return null.

clear

public void clear(java.lang.Object key)
Clear the value at the given location in the cache.

clear

public void clear()
Clear the entire cache.

Protomatter Classes v1.1.6
Copyright 1998-2001 Nate Sammons

Protomatter Classes v1.1.6 http://protomatter.sourceforge.net/1.1.6