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
public interface IntegrationCache<K extends IntegrationCacheKey,T>Defines operations on a cache
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontains(K key)Indicates whether the key exists in the cacheTget(K key)Gets the item from the cache by the keyvoidput(K key, T item)Puts the item in the cache, referenced by the keyTremove(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 itemitem- 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
-
-