com.atlassian.confluence.cache.ehcache
Class ConfluenceEhCache

java.lang.Object
  extended by com.atlassian.confluence.cache.ehcache.ConfluenceEhCache
All Implemented Interfaces:
com.atlassian.cache.Cache, ConfigurableCache

public class ConfluenceEhCache
extends Object
implements ConfigurableCache


Constructor Summary
ConfluenceEhCache(net.sf.ehcache.Cache delegate)
           
 
Method Summary
 Object get(Object key)
           
 Collection<Object> getKeys()
           
 String getName()
           
 void put(Object key, Object value)
           
 void remove(Object key)
           
 void removeAll()
           
 void setTimeToLive(long timeToLive, TimeUnit timeUnit)
          Update the time to live.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfluenceEhCache

public ConfluenceEhCache(net.sf.ehcache.Cache delegate)
Method Detail

get

public Object get(Object key)
Specified by:
get in interface com.atlassian.cache.Cache

getKeys

public Collection<Object> getKeys()
Specified by:
getKeys in interface com.atlassian.cache.Cache

getName

public String getName()
Specified by:
getName in interface com.atlassian.cache.Cache

put

public void put(Object key,
                Object value)
Specified by:
put in interface com.atlassian.cache.Cache

remove

public void remove(Object key)
Specified by:
remove in interface com.atlassian.cache.Cache

removeAll

public void removeAll()
Specified by:
removeAll in interface com.atlassian.cache.Cache

setTimeToLive

public void setTimeToLive(long timeToLive,
                          TimeUnit timeUnit)
Description copied from interface: ConfigurableCache
Update the time to live. Please note, some implementations cannot store time values smaller than TimeUnit.SECONDS.

Specified by:
setTimeToLive in interface ConfigurableCache
Parameters:
timeToLive - value
timeUnit - unit of time


Copyright © 2003-2013 Atlassian. All Rights Reserved.