com.atlassian.confluence.cache
Class MemoryCache

java.lang.Object
  extended by com.atlassian.confluence.cache.MemoryCache
All Implemented Interfaces:
Cache

public class MemoryCache
extends Object
implements Cache

An in-memory cache that uses a HashMap as its data store.


Constructor Summary
MemoryCache()
           
 
Method Summary
 Object get(Object key)
           
 List getKeys()
           
 String getName()
           
 int getStatus()
           
 void put(Object key, Object value)
           
 void remove(Object key)
           
 void removeAll()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryCache

public MemoryCache()
Method Detail

getName

public String getName()
Specified by:
getName in interface Cache

get

public Object get(Object key)
Specified by:
get in interface Cache

getKeys

public List getKeys()
Specified by:
getKeys in interface Cache

put

public void put(Object key,
                Object value)
Specified by:
put in interface Cache

remove

public void remove(Object key)
Specified by:
remove in interface Cache

removeAll

public void removeAll()
Specified by:
removeAll in interface Cache

getStatus

public int getStatus()
Specified by:
getStatus in interface Cache


Confluence is developed by Atlassian.