public final class CacheService extends Object
Modifier and Type | Method and Description |
---|---|
net.sf.ehcache.Cache |
createCache(String strCacheName)
Create a cache for a given Service
|
static List<CacheableService> |
getCacheableServicesList()
Returns all registered Cacheable services
|
static CacheService |
getInstance()
Gets the unique instance of the CacheService
|
static void |
registerCacheableService(CacheableService cs)
Registers a new CacheableService
|
static void |
resetCaches()
Reset all caches
|
void |
shutdown()
Shutdown the cache service and the cache manager.
|
static void |
storeCachesStatus()
Stores cache status
|
static void |
updateCacheStatus(CacheableService cs)
Update cache status
|
public static CacheService getInstance()
public net.sf.ehcache.Cache createCache(String strCacheName)
strCacheName
- The Cache/Service namepublic static void resetCaches()
public void shutdown()
public static void registerCacheableService(CacheableService cs)
cs
- The CacheableServicepublic static List<CacheableService> getCacheableServicesList()
public static void storeCachesStatus()
public static void updateCacheStatus(CacheableService cs)
cs
- Cacheable ServiceCopyright © 2020 City of Paris. All rights reserved.