API Overview API Index Package Overview Direct link to this page
JavaOnTracks 0.1.2
  net.jot.utils.caching. Cache View Source
Author(s)
thibautc
Since
Version
Serial
Hierarchy
 Object
      Cache
Implements
Subclasses
Description
public class Cache
Lazy caching base Stores data in a Synchronized Hashmap(so it can store null)
See also:   
Constructors
public Cache ()
Methods
Hide/Show inherited methods
public boolean containsKey (Object key)
publicsynchronized void flushCache ()
public Object get (Object key, CacheProvider provider)
  Gets an item from the cache (lazilly cached) Key should be an immutable (ie: String) Infos: will be passed to read, can be anyhting that help you creation the value in read()
public String getStats ()
  Return a stat string about this cache
public Set keys ()
public void setName (String n)
  Set a name for this cache to be used in the stats Defaults to the class name
public void setValue (Object key, Object value)
  Force a value (put())
Fields
Hide/Show inherited fields
public Date flushTime
public int hits
public String name
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.5     ©Thibaut Colar