|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CacheProvider
This is a provider (pluggable functionality) for DSpace.
This allows an external system to define how caches are handled in DSpace by implementing this interface and registering it with the service manager.
| Method Summary | |
|---|---|
void |
destroyCache(String cacheName)
Flush and destroy the cache with this name. |
Cache |
getCache(String cacheName,
CacheConfig config)
Construct a Cache with the given name (must be unique) OR
retrieve the one that already exists with this name. |
List<Cache> |
getCaches()
Gets all the caches that this provider knows about. |
void |
resetCaches()
Clears the contents of all caches managed by this provider |
| Method Detail |
|---|
List<Cache> getCaches()
Cache getCache(String cacheName,
CacheConfig config)
Cache with the given name (must be unique) OR
retrieve the one that already exists with this name.
NOTE: providers will never be asked to provide request caches
(e.g. CacheConfig.CacheScope#REQUEST)
cacheName - the unique name for this cache (e.g. org.dspace.user.UserCache)config - (optional) a configuration object. The cache
should adhere to the settings in it. If it is null then just use
defaults.
IllegalArgumentException - if the cache name is already in use or the config is invalidvoid destroyCache(String cacheName)
cacheName - the unique name for this cache (e.g. org.dspace.user.UserCache)void resetCaches()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||