Interface IntegrationCache<K extends IntegrationCacheKey,T>
- Type Parameters:
K- Type of the cache keyT- 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
-
Method Details
-
get
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
Puts the item in the cache, referenced by the key- Parameters:
key- Key to the cached itemitem- Item to cache
-
remove
Removes the item from the cache by the key- Parameters:
key- Key to the item to invalidate- Returns:
- The invalidated item, otherwise null
-
contains
Indicates whether the key exists in the cache- Parameters:
key- Key to test for existence- Returns:
- True if the key exists, otherwise false
-