Package org.dspace.app.sherpa.cache
Class SherpaCacheEvictService
java.lang.Object
org.dspace.app.sherpa.cache.SherpaCacheEvictService
This service is responsible to deal with the SherpaService cache.
- Author:
- Mykhaylo Boychuk (mykhaylo.boychuk at 4science.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInvalidate immediately the Sherpa cachevoidevictCacheValues(Context context, Item item) Remove immediately from the cache all the response that are related to a specific item extracting the ISSNs from the itemvoidsetCacheManager(CacheManager cacheManager) Set the reference to the cacheManagervoidsetSherpaSubmitService(SHERPASubmitService sherpaSubmitService) Set the reference to the SherpaSubmitService
-
Constructor Details
-
SherpaCacheEvictService
public SherpaCacheEvictService()
-
-
Method Details
-
evictCacheValues
Remove immediately from the cache all the response that are related to a specific item extracting the ISSNs from the item- Parameters:
context- The DSpace contextitem- an Item
-
evictAllCacheValues
public void evictAllCacheValues()Invalidate immediately the Sherpa cache -
setCacheManager
Set the reference to the cacheManager- Parameters:
cacheManager-
-
setSherpaSubmitService
Set the reference to the SherpaSubmitService- Parameters:
sherpaSubmitService-
-