Interface IntegrationCache<K extends IntegrationCacheKey,T>

Type Parameters:
K - Type of the cache key
T - Type of the cached item
All Known Subinterfaces:
RestTemplateCache
All Known Implementing Classes:
BaseIntegrationCache, CsrfParametersCache, DestinationRestTemplateCache, WebhookConvertedItemCache, WebhookDeletedItemCache

public interface IntegrationCache<K extends IntegrationCacheKey,T>
Defines operations on a cache
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    contains(K key)
    Indicates whether the key exists in the cache
    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
    remove(K key)
    Removes the item from the cache by the key
  • Method Details

    • 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