org.weborganic.ox.util
Class BasicCache<T>

java.lang.Object
  extended by org.weborganic.ox.util.BasicCache<T>

public class BasicCache<T>
extends Object

A really basic caching implementation backed by a hashtable.

Version:
28 October 2013
Author:
Christophe Lauret

Constructor Summary
BasicCache()
          Initialise a new basic cache.
 
Method Summary
 void clear()
           
 T get(String key, long modified)
           
 void put(String key, T item)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicCache

public BasicCache()
Initialise a new basic cache.

Method Detail

get

public T get(String key,
             long modified)

put

public void put(String key,
                T item)

clear

public void clear()