Interface Cache.Backend<K,V>

Type Parameters:
K - the key class
V - the value class
All Known Implementing Classes:
AbstractBlobStore, CachingBlobStore, FileBlobStore, MemoryBlobStore
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

    Modifier and Type
    Method
    Description
    load(K key)
    Load the object.
  • Method Details

    • 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