net.sf.swan.util
Interface Cache
- All Known Implementing Classes:
- LRUCache
- public interface Cache
Method Summary |
void |
clear()
|
java.lang.Object |
get(java.lang.Object key)
|
int |
getCapacity()
|
void |
put(java.lang.Object key,
java.lang.Object resource)
|
void |
remove(java.lang.Object key)
|
void |
setCapacity(int capacity)
|
getCapacity
public int getCapacity()
setCapacity
public void setCapacity(int capacity)
get
public java.lang.Object get(java.lang.Object key)
put
public void put(java.lang.Object key,
java.lang.Object resource)
remove
public void remove(java.lang.Object key)
clear
public void clear()