Class TopicCacheService

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

@Service public class TopicCacheService extends Object
  • Field Details

    • topicRequestCacheKey

      private String topicRequestCacheKey
    • clientIdCacheKey

      private String clientIdCacheKey
    • topicRequestCache

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

    • TopicCacheService

      public TopicCacheService()
  • Method Details

    • init

      @PostConstruct public void init()
    • pushTopic

      public void pushTopic(String topic, String userUid)
    • pushRequest

      public void pushRequest(TopicRequest request)
    • pushClientId

      public void pushClientId(String clientId)
    • removeClientId

      public void removeClientId(String clientId)
    • push

      private void push(String listKey, String cacheValue)
    • remove

      private void remove(String listKey, String cacheValue)
    • getTopicRequestList

      public List<String> getTopicRequestList()
    • getClientIdList

      public List<String> getClientIdList()
    • getList

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

      public void remove()
    • remove

      private void remove(String listKey)
    • clear

      public void clear()