Interface ConfigurableCache<K,​V>

  • All Superinterfaces:
    com.atlassian.cache.Cache<K,​V>
    All Known Subinterfaces:
    ConfluenceCache<K,​V>
    All Known Implementing Classes:
    ConfluenceMonitoringCache, DefaultConfluenceCache, DeferredOperationsCache

    @Deprecated
    public interface ConfigurableCache<K,​V>
    extends com.atlassian.cache.Cache<K,​V>
    Deprecated.
    since 5.5.1 please use ManagedCache instead
    Defines a configurable Cache. This interface provides additional methods that allow the runtime configuration of a cache to be configured.
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      void setTimeToLive​(long timeToLive, TimeUnit timeUnit)
      Deprecated.
      Since 5.6.
      • Methods inherited from interface com.atlassian.cache.Cache

        addListener, containsKey, get, get, getBulk, getKeys, getName, put, putIfAbsent, remove, remove, removeAll, removeListener, replace
    • Method Detail

      • setTimeToLive

        @Deprecated
        void setTimeToLive​(long timeToLive,
                           TimeUnit timeUnit)
        Deprecated.
        Since 5.6. Use CacheSettingsBuilder.expireAfterWrite(long, java.util.concurrent.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