sqlg2.db.client
Class SoftCache<K,V>

java.lang.Object
  extended by sqlg2.db.client.SoftCache<K,V>

public final class SoftCache<K,V>
extends java.lang.Object

Cache using soft references (GC can collect its keys). So this is kind of memory-sensitive cache.


Constructor Summary
SoftCache()
           
 
Method Summary
 V get(K key)
           
 void put(K key, V value)
           
 V remove(K key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoftCache

public SoftCache()
Method Detail

get

public V get(K key)

put

public void put(K key,
                V value)

remove

public V remove(K key)