putUser method

void putUser(
  1. String userId,
  2. TopicSubscription user
)

This is a wrapper for put function which puts a user into cache by userId

Implementation

void putUser(String userId, TopicSubscription user) {
  return put('user', userId, user.copy());
}