Interface CacheService
-
- All Known Implementing Classes:
ApplicationCacheService
,SessionCacheService
,ThreadCacheService
public interface CacheService
A service working on caches.- Author:
- mmoquillon
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clearAllCaches()
Clears all the caches on which this service works.<T extends SimpleCache>
TgetCache()
Gets a cache from this service.
-
-
-
Method Detail
-
getCache
<T extends SimpleCache> T getCache()
Gets a cache from this service.- Type Parameters:
T
- the concrete type ofSimpleCache
- 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
void clearAllCaches()
Clears all the caches on which this service works.
-
-