Package org.dspace.app.sherpa.cache
Class SherpaCacheEvictService
- java.lang.Object
-
- org.dspace.app.sherpa.cache.SherpaCacheEvictService
-
public class SherpaCacheEvictService extends Object
This service is responsible to deal with the SherpaService cache.- Author:
- Mykhaylo Boychuk (mykhaylo.boychuk at 4science.com)
-
-
Constructor Summary
Constructors Constructor Description SherpaCacheEvictService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidevictAllCacheValues()Invalidate 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(org.springframework.cache.CacheManager cacheManager)Set the reference to the cacheManagervoidsetSherpaSubmitService(SHERPASubmitService sherpaSubmitService)Set the reference to the SherpaSubmitService
-
-
-
Method Detail
-
evictCacheValues
public void evictCacheValues(Context context, Item item)
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
public void setCacheManager(org.springframework.cache.CacheManager cacheManager)
Set the reference to the cacheManager- Parameters:
cacheManager-
-
setSherpaSubmitService
public void setSherpaSubmitService(SHERPASubmitService sherpaSubmitService)
Set the reference to the SherpaSubmitService- Parameters:
sherpaSubmitService-
-
-