Class TopicCacheService

java.lang.Object
com.bytedesk.core.topic.TopicCacheService

@Service public class TopicCacheService extends Object
  • Field Details

    • defaultCacheKey

      String defaultCacheKey
    • topicCache

      private com.github.benmanes.caffeine.cache.Cache<String,List<String>> topicCache
  • Constructor Details

    • TopicCacheService

      public TopicCacheService()
  • Method Details

    • init

      @PostConstruct public void init()
    • push

      public void push(String messageJSON)
    • pushRequest

      public void pushRequest(TopicRequest request)
    • push

      public void push(String listKey, String messageJSON)
    • getList

      public List<String> getList()
    • getList

      public List<String> getList(String listKey)
    • remove

      public void remove()
    • remove

      public void remove(String listKey)
    • clear

      public void clear()