com.atlassian.confluence.cache
Interface ConfigurableCache<K,V>

All Superinterfaces:
com.atlassian.cache.Cache<K,V>
All Known Implementing Classes:
ConfluenceEhCache, TangosolCache

public interface ConfigurableCache<K,V>
extends com.atlassian.cache.Cache<K,V>

Defines a configurable Cache. This interface provides additional methods that allow the runtime configuration of a cache to be configured. This interface can be moved into the com.atlassian.cache library once it has stabilised and matured in Confluence.


Method Summary
 void setTimeToLive(long timeToLive, java.util.concurrent.TimeUnit timeUnit)
          Update the time to live.
 
Methods inherited from interface com.atlassian.cache.Cache
containsKey, get, getKeys, getName, put, putIfAbsent, remove, remove, removeAll, replace
 

Method Detail

setTimeToLive

void setTimeToLive(long timeToLive,
                   java.util.concurrent.TimeUnit timeUnit)
Update the time to live. Please note, some implementations cannot store time values smaller than TimeUnit.SECONDS.

Parameters:
timeToLive - value
timeUnit - unit of time


Copyright © 2003-2014 Atlassian. All Rights Reserved.