Package io.mangoo.cache
Class CacheProvider
java.lang.Object
io.mangoo.cache.CacheProvider
- Author:
- svenkubiak
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes all cachesget()Retrieves a cache by its name from the cache poolRetrieves a cache by its name from the cache poolReturns a map containing cache names and cache statisticsvoidregisterCacheConfiguration(String name, org.ehcache.config.CacheConfiguration<String, Object> configuration) Registers a new cache with custom configuration
-
Constructor Details
-
CacheProvider
-
-
Method Details
-
registerCacheConfiguration
public void registerCacheConfiguration(String name, org.ehcache.config.CacheConfiguration<String, Object> configuration) Registers a new cache with custom configuration- Parameters:
name- The name of the cacheconfiguration- The configuration for the cache to use
-
getCacheStatistics
Returns a map containing cache names and cache statistics- Returns:
- Map of cache statistics
-
getCache
Retrieves a cache by its name from the cache pool- Parameters:
name- The name of the cache- Returns:
- A Cache instance
-
getCache
Retrieves a cache by its name from the cache pool- Parameters:
name- The name of the cache- Returns:
- A Cache instance
-
close
public void close()Closes all caches -
get
-