isTopicCached method

bool isTopicCached(
  1. String topicName
)

Check if named topic is already present in cache

Implementation

bool isTopicCached(String topicName) {
  var topic = _cacheManager.get('topic', topicName);
  return topic != null;
}