org.apache.jackrabbit.oak.commons.cache
Interface Cache.Backend<K,V>

Type Parameters:
K - the key class
V - the value class
Enclosing class:
Cache<K,V extends Cache.Value>

public static interface Cache.Backend<K,V>

A cache backend that can load objects from persistent storage.


Method Summary
 V load(K key)
          Load the object.
 

Method Detail

load

V load(K key)
Load the object. The method does not need to be synchronized (it is synchronized in the cache)

Parameters:
key - the key
Returns:
the value


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.