dk.vajhoej.isam.cache
Interface IsamCache

All Known Implementing Classes:
EHCacheWrapper, StandardIsamCache

public interface IsamCache

Interface IsamCache represents a cache to be used by CacheIsamSource.


Method Summary
<T,TK> T
get(java.lang.Class<T> t, Key<TK> k)
          Get object from cache.
 double getHitRate()
          Get hit rate.
<T,TK> void
put(Key<TK> k, T o)
          Put object in cache.
<T,TK> void
remove(java.lang.Class<T> clz, Key<TK> k)
          Remove object from cache.
 

Method Detail

get

<T,TK> T get(java.lang.Class<T> t,
             Key<TK> k)
Get object from cache.

Parameters:
t - type
k - key
Returns:
object

put

<T,TK> void put(Key<TK> k,
                T o)
Put object in cache.

Parameters:
k - key
o - object

remove

<T,TK> void remove(java.lang.Class<T> clz,
                   Key<TK> k)
Remove object from cache.

Parameters:
clz - type
k - key

getHitRate

double getHitRate()
Get hit rate.

Returns:
cache hit rate