Class ApplicationCacheService
- java.lang.Object
-
- org.silverpeas.core.cache.service.ApplicationCacheService
-
- All Implemented Interfaces:
CacheService
public class ApplicationCacheService extends Object implements CacheService
A service to handle a cache whose lifetime is over the whole application runtime.- Author:
- mmoquillon
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ApplicationCacheService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearAllCaches()
Clears all the caches on which this service works.Cache
getCache()
Gets a cache from this service.
-
-
-
Method Detail
-
getCache
public Cache getCache()
Description copied from interface:CacheService
Gets a cache from this service.- Specified by:
getCache
in interfaceCacheService
- Returns:
- either a new cache or a single one according to the policy of the service about the cache(s) on which it works.
-
clearAllCaches
public void clearAllCaches()
Description copied from interface:CacheService
Clears all the caches on which this service works.- Specified by:
clearAllCaches
in interfaceCacheService
-
-