org.apache.jackrabbit.mk.util
Interface Cache.Backend<K,V>

Type Parameters:
K - the key class
V - the value class
All Known Implementing Classes:
AbstractBlobStore, DbBlobStore, FileBlobStore, MemoryBlobStore, MongoBlobStore
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 The Apache Software Foundation. All Rights Reserved.