|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CachingService
A service to manage creation and retrieval of caches.
| Field Summary | |
|---|---|
static String |
REQUEST_CACHE
This is the cache key used to stored requests in a request cache, typically handled by a servlet filter but can be handled by anything. |
| Method Summary | |
|---|---|
void |
destroyCache(String cacheName)
Flushes and destroys the cache with this name. |
Cache |
getCache(String cacheName,
CacheConfig cacheConfig)
Construct a Cache with the given name OR retrieve the one that already exists with this name. |
List<Cache> |
getCaches()
Gets all the caches that the service knows about. |
String |
getStatus(String cacheName)
Get a status report of cache usage which is suitable for log or screen output. |
void |
resetCaches()
Clears all caches. |
void |
unbindRequestCaches()
Unbinds all request caches. |
| Field Detail |
|---|
static final String REQUEST_CACHE
| Method Detail |
|---|
List<Cache> getCaches()
Cache getCache(String cacheName,
CacheConfig cacheConfig)
This can only retrieve request caches for the current request.
If the cache already exists then the cacheConfig is ignored.
cacheName - the unique name for this cache (e.g. org.dspace.user.UserCache)cacheConfig - defines the configuration for this cache
void destroyCache(String cacheName)
cacheName - the unique name for this cache (e.g. org.dspace.user.UserCache)String getStatus(String cacheName)
cacheName - (optional) the unique name for this cache (e.g. org.dspace.user.UserCache)
OR null for status of all caches
void resetCaches()
SecurityException - if the current user does not have super user permissionsvoid unbindRequestCaches()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||