src/js/utils/request-cache.js
/**
   * Clear cache for all matched keys (or exactly the key if `match` is a string)
   */
Clear cache for all matched keys (or exactly the key if `match` is a string)
Clear cache for all matched keys ( or exactly the key if ` match ` is a string )
clear(match) {
    if (typeof match === 'object') {
      const keys = Object.keys(this.data);
      for (let i = 0; i < keys.length; i++) {
        if (keys[i].match(match)) {
          delete this.data[keys[i]];
        }
      }
    } else {
      delete this.data[match];
    }
  }
clear ( match ) { if ( typeof match === 'object' ) { const keys = Object . keys ( this . data ) ; for ( let i = 0 ; i < keys . length ; i ++ ) { if ( keys [ i ] . match ( match ) ) { delete this . data [ keys [ i ] ] ; } } } else { delete this . data [ match ] ; } }
Clear cache for all matched keys (or exactly the key if `match` is a string)
Clear cache for all matched keys ( or exactly the key if ` match ` is a string )