putTopic method

void putTopic(
  1. Topic topic
)

This is a wrapper for put function which puts a topic into cache

Implementation

void putTopic(Topic topic) {
  return put('topic', (topic.name ?? ''), topic);
}