com.atlassian.confluence.cache.option
Class OptionalReadThroughCache<K,V>

java.lang.Object
  extended by com.atlassian.confluence.cache.option.OptionalReadThroughCache<K,V>

Deprecated. Since 5.6 Use CacheFactory.getCache(String, com.atlassian.cache.CacheLoader)

@Deprecated
public class OptionalReadThroughCache<K,V>
extends java.lang.Object

Read-through cache which stores missing results from the underlying factory in addition to non-missing values.


Constructor Summary
OptionalReadThroughCache(com.atlassian.cache.Cache<K,Option<V>> cache, com.google.common.base.Function<K,V> factory)
          Deprecated.  
 
Method Summary
 V get(K key)
          Deprecated.  
 void put(K key, V value)
          Deprecated.  
 void remove(K key)
          Deprecated.  
 void removeAll()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptionalReadThroughCache

public OptionalReadThroughCache(com.atlassian.cache.Cache<K,Option<V>> cache,
                                com.google.common.base.Function<K,V> factory)
Deprecated. 
Method Detail

get

public V get(K key)
Deprecated. 

put

public void put(K key,
                V value)
Deprecated. 

remove

public void remove(K key)
Deprecated. 

removeAll

public void removeAll()
Deprecated. 


Copyright © 2003-2014 Atlassian. All Rights Reserved.