addToCache (name, data, opts) {
    return this.getCollection(name).add(data, opts)
  }
This method takes the data received from {@link SimpleStore#find},
{@link SimpleStore#findAll}, {@link SimpleStore#update}, etc., and adds the
data to the store. _You don't need to call this method directly._

If you're using the http adapter and your response data is in an unexpected
format, you may need to override this method so the right data gets added
to the store.

@example
const store = new SimpleStore({
  addToCache (mapperName, data, opts) {
    // Let's say for a particular Resource, response data is in a weird format
    if (name === 'comment') {
      // Re-assign the variable to add the correct records into the stores
      data = data.items;
    }
    // Now perform default behavior
    return SimpleStore.prototype.addToCache.call(this, mapperName, data, opts);
  }
});

@example
// Extend using ES2015 class syntax.
class MyStore extends SimpleStore {
  addToCache (mapperName, data, opts) {
    // Let's say for a particular Resource, response data is in a weird format
    if (name === 'comment') {
      // Re-assign the variable to add the correct records into the stores
      data = data.items;
    }
    // Now perform default behavior
    return super.addToCache(mapperName, data, opts);
  }
}
const store = new MyStore();

@method SimpleStore#addToCache
@param {string} name Name of the {@link Mapper} to target.
@param {*} data Data from which data should be selected for add.
@param {object} [opts] Configuration options.