async _refresh(key, staleItem, updateFn, opts = {}) {
    if (!(key in this._pendingRefreshes)) {
      this._pendingRefreshes[key] = this._forceRefresh(key, staleItem, updateFn, opts);
    }

    const value = await this._pendingRefreshes[key];
    return { value, fromCache: false };
  }
/**
   * Refresh the cache for a given key value pair. Pending refreshes are reused.
   *
   * @param {String} key cache key
   * @param {JSONSerializable} staleItem cache value
   * @param {UpdateFn} updateFn async function that defines how to get a new value
   * @param {Object} opts An options object
   * @param {ShouldCache} [opts.shouldCache] Function that determines whether or not we should cache the item
   * @param {Number} [opts.maxAge] The duration, in milliseconds, before a cached item expires
   *
   * @private
   * @async
   * @returns {Promise<any>} a promise that resolves once we have refreshed the correct key
   */
Refresh the cache for a given key value pair. Pending refreshes are reused.

@private
@async
@returns {Promise} a promise that resolves once we have refreshed the correct key
Refresh the cache for a given key value pair . Pending refreshes are reused . @private @async @returns { Promise } a promise that resolves once we have refreshed the correct key
async _refresh(key, staleItem, updateFn, opts = {}) {
    if (!(key in this._pendingRefreshes)) {
      this._pendingRefreshes[key] = this._forceRefresh(key, staleItem, updateFn, opts);
    }
    const value = await this._pendingRefreshes[key];
    return { value, fromCache: false };
  }
async _refresh ( key , staleItem , updateFn , opts = { } ) { if ( ! ( key in this . _pendingRefreshes ) ) { this . _pendingRefreshes [ key ] = this . _forceRefresh ( key , staleItem , updateFn , opts ) ; } const value = await this . _pendingRefreshes [ key ] ; return { value , fromCache : false } ; }
Refresh the cache for a given key value pair.
Refresh the cache for a given key value pair .