Interface IntegrationCache<K extends IntegrationCacheKey,​T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean contains​(K key)
      Indicates whether the key exists in the cache
      T get​(K key)
      Gets the item from the cache by the key
      void put​(K key, T item)
      Puts the item in the cache, referenced by the key
      T remove​(K key)
      Removes the item from the cache by the key
    • Method Detail

      • get

        T get​(K key)
        Gets the item from the cache by the key
        Parameters:
        key - Key to the cached item
        Returns:
        The object if the key exists, otherwise null
      • put

        void put​(K key,
                 T item)
        Puts the item in the cache, referenced by the key
        Parameters:
        key - Key to the cached item
        item - Item to cache
      • remove

        T remove​(K key)
        Removes the item from the cache by the key
        Parameters:
        key - Key to the item to invalidate
        Returns:
        The invalidated item, otherwise null
      • contains

        boolean contains​(K key)
        Indicates whether the key exists in the cache
        Parameters:
        key - Key to test for existence
        Returns:
        True if the key exists, otherwise false