Class RssAggregatorCache

java.lang.Object
org.silverpeas.components.rssaggregator.service.RssAggregatorCache

@Technical @Bean @Singleton public class RssAggregatorCache extends Object
Author:
sv
  • Method Details

    • getInstance

      public static RssAggregatorCache getInstance()
      Get an instance of RssAggregatorCache
    • getChannelFromCache

      public SPChannel getChannelFromCache(SPChannelPK key)
      Get a cached content. If content is not cached, return null.
    • addChannelToCache

      public void addChannelToCache(SPChannel spChannel)
      Add or replace a content in the cache
    • removeChannelFromCache

      public void removeChannelFromCache(SPChannelPK key)
      Parameters:
      key - of the channel to remove from the cache
    • isContentNeedToRefresh

      public boolean isContentNeedToRefresh(SPChannelPK key)
      Returns:
      true if a cached content need to be updated or a content is not cached.