Interface MiddlewareCache<V>
- Type Parameters:
V- the value type
- All Known Implementing Classes:
SimpleCache
public interface MiddlewareCache<V>
MiddlewareCache is a simple cache interface for use with caching middleware.
-
Method Summary
-
Method Details
-
get
Gets a value from the cache.- Parameters:
key- the cache key- Returns:
- the cached value, or null if not found
-
put
Puts a value in the cache.- Parameters:
key- the cache keyvalue- the value to cache
-
remove
Removes a value from the cache.- Parameters:
key- the cache key
-
clear
void clear()Clears all values from the cache.
-