Interface Cache<K,​V>

    • Method Detail

      • put

        V put​(K key,
              V value)
        Put a value in the cache.
        Parameters:
        key - the key of the value.
        value - the value.
        Returns:
        the previous value or null.
      • lookup

        V lookup​(K key)
        Returns the value of the specified key, or null.
        Parameters:
        key - the key.
        Returns:
        the value found in the cache, or null.
      • getMaxCacheSize

        int getMaxCacheSize()
        Return the maximum cache Size.
        Returns:
        the maximum cache size.
      • setMaxCacheSize

        void setMaxCacheSize​(int size)
        Set the maximum cache size.
        Parameters:
        size - the new maximum cache size.