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

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

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 delegate, com.google.common.base.Function<K,V> factory)
           
 
Method Summary
 V get(K key)
           
 void put(K key, V value)
           
 void remove(K key)
           
 void removeAll()
           
 
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 delegate,
                                com.google.common.base.Function<K,V> factory)
Method Detail

get

public V get(K key)

put

public void put(K key,
                V value)

remove

public void remove(K key)

removeAll

public void removeAll()


Copyright © 2003-2014 Atlassian. All Rights Reserved.