Package sonia.scm.cache
Interface CacheManager
- All Superinterfaces:
AutoCloseable
,Closeable
The
CacheManager
holds references to Cache
and manages their creation.
This class is a singleton which can be retrieved via injection.-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears (aka invalidates) all caches.<K,
V> Cache<K, V> Returns the cache with the specified types and name.
-
Method Details
-
getCache
Returns the cache with the specified types and name. If the cache does not exist, a new cache is created.- Type Parameters:
K
- - The type of the keys for the cacheV
- - The type of cache elements- Parameters:
name
- - The name of the cache- Returns:
- the cache with the specified types and name
-
clearAllCaches
void clearAllCaches()Clears (aka invalidates) all caches.- Since:
- 2.48.0
-