com.atlassian.confluence.cache.ehcache
Class ConfluenceEhCache
java.lang.Object
com.atlassian.confluence.cache.ehcache.ConfluenceEhCache
- All Implemented Interfaces:
- com.atlassian.cache.Cache, ConfigurableCache
public class ConfluenceEhCache
- extends Object
- implements ConfigurableCache
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfluenceEhCache
public ConfluenceEhCache(net.sf.ehcache.Cache delegate)
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
- valuetimeUnit
- unit of time
Copyright © 2003-2013 Atlassian. All Rights Reserved.