Class CacheService
java.lang.Object
fr.paris.lutece.portal.service.cache.CacheService
Provides cache object for cacheable services
-
Method Summary
Modifier and TypeMethodDescriptionnet.sf.ehcache.CachecreateCache(String strCacheName) Create a cache for a given Servicestatic List<CacheableService>Returns all registered Cacheable servicesstatic CacheServiceGets the unique instance of the CacheServicestatic voidRegisters a new CacheableServicestatic voidReset all cachesvoidshutdown()Shutdown the cache service and the cache manager.static voidStores cache statusstatic voidUpdate cache status
-
Method Details
-
getInstance
Gets the unique instance of the CacheService- Returns:
- The unique instance of the CacheService
-
createCache
Create a cache for a given Service- Parameters:
strCacheName- The Cache/Service name- Returns:
- A cache object
-
resetCaches
public static void resetCaches()Reset all caches -
shutdown
public void shutdown()Shutdown the cache service and the cache manager. Should be called when the webapp is stopped. -
registerCacheableService
Registers a new CacheableService- Parameters:
cs- The CacheableService
-
getCacheableServicesList
Returns all registered Cacheable services- Returns:
- A collection containing all registered Cacheable services
-
storeCachesStatus
public static void storeCachesStatus()Stores cache status -
updateCacheStatus
Update cache status- Parameters:
cs- Cacheable Service
-