cacheSet (key, data) {
    try {
      window.localStorage.setItem(this.getCacheKey(key), JSON.stringify({
        cacheBuster: this.getCacheBuster(),
        schema: data
      }))
    } catch (e) {
      // eslint-disable-next-line no-console
      console.error(e)
    }
  }
Sets a schema into localStorage cache.

@param {string} key
  The schema's key, e.g., URL.
@param {mixed} data
  The schema to store. Can be any data type.