remove(key) {
    checkIfInstanceIsDisposed(this.disposed);

    const target = this.cacheStore[key];

    if (target) {
      // Remove key & value from cache
      delete this.cacheStore[key];
      const { expiryAt } = target;
      // If timer exists for the key, remove it
      this.cacheExpirer.remove(expiryAt, key);
      this.emit(Events.REMOVE, { key, data: target });

      return true;
    }

    return false;
  }
/**
   * Remove data from the cache
   *
   * @param {String} key  Cache key to be removed from the cache
   *
   * @returns {Boolean} If `key` found, returns `true`,else returns `false`
   * */
Remove data from the cache
@param {String} key  Cache key to be removed from the cache


Remove data from the cache @param { String } key Cache key to be removed from the cache
remove(key) {
    checkIfInstanceIsDisposed(this.disposed);
    const target = this.cacheStore[key];
    if (target) {
      delete this.cacheStore[key];
      const { expiryAt } = target;
      this.cacheExpirer.remove(expiryAt, key);
      this.emit(Events.REMOVE, { key, data: target });
      return true;
    }
    return false;
  }
remove ( key ) { checkIfInstanceIsDisposed ( this . disposed ) ; const target = this . cacheStore [ key ] ; if ( target ) { delete this . cacheStore [ key ] ; const { expiryAt } = target ; this . cacheExpirer . remove ( expiryAt , key ) ; this . emit ( Events . REMOVE , { key , data : target } ) ; return true ; } return false ; }
Remove data from the cache
 @param {String} key  Cache key to be removed from the cache
Remove data from the cache @param { String } key Cache key to be removed from the cache
// Remove key & value from cache // If timer exists for the key, remove it