|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.cache.ThreadLocalCacheAccessor<K,V>
public class ThreadLocalCacheAccessor<K,V>
A type-safe way of accessing the threadlocal cache
ThreadLocalCache
Method Summary | ||
---|---|---|
V |
get(K key)
Retrieve a value from the threadlocal cache |
|
static
|
newInstance()
Factory method (for type inference) |
|
void |
put(K key,
V value)
Put a value in the threadlocal cache |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <K,V> ThreadLocalCacheAccessor<K,V> newInstance()
public void put(K key, V value)
key
- the key to cachevalue
- the value to cachepublic V get(K key)
key
- the key for the cache value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |