# Packages

No description provided by the author

# Functions

GetEmptyTopic returns an empty topic cache e.g in an event where updating the cache of the topic fails.
GetMockCacheList returns a mocked list of cache which contains the topic cache.
GetMockRootTopic returns the mocked root topic.
GetNewSubTopicsMap creates a new subtopics id map to store subtopic ids with addition to mutex locking.
NewTopicCache create a topic cache object to be used in the service which will update at every updateInterval If updateInterval is nil, this means that the cache will only be updated once at the start of the service.

# Constants

TopicCacheKey is used to cache the topics.

# Structs

CacheList is a list of caches for the dp-search-data-extractor.
Subtopic represents the data which is cached for a subtopic to be used by the dp-search-data-extractor.
Subtopics contains a list of subtopics in map form with addition to mutex locking The subtopicsMap is used to keep a record of subtopics to be later used to generate the subtopics id `query` for a topic and to check if the subtopic id given by a user exists.
Topic represents the data which is cached for a topic to be used by the dp-search-data-extractor.
TopicCache is a wrapper to dpcache.Cache which has additional fields and methods specifically for caching topics.