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 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