remove(key) {
    const cache = this[cacheSymbol];
    const index = cache.findIndex(item => item.key === key);
    let removeItem = null;
    if (index !== -1) {
      removeItem = cache.splice(index, 1)[0];
      this.store.set(this.namespace, cache);
    }
    return removeItem && removeItem.value;
  }
/**
   * Remove the value of key from the store
   * @param {String} key - the key of store data
   */
Remove the value of key from the store
@param {String} key - the key of store data
Remove the value of key from the store @param { String } key - the key of store data
remove(key) {
    const cache = this[cacheSymbol];
    const index = cache.findIndex(item => item.key === key);
    let removeItem = null;
    if (index !== -1) {
      removeItem = cache.splice(index, 1)[0];
      this.store.set(this.namespace, cache);
    }
    return removeItem && removeItem.value;
  }
remove ( key ) { const cache = this [ cacheSymbol ] ; const index = cache . findIndex ( item => item . key === key ) ; let removeItem = null ; if ( index !== - 1 ) { removeItem = cache . splice ( index , 1 ) [ 0 ] ; this . store . set ( this . namespace , cache ) ; } return removeItem && removeItem . value ; }
Remove the value of key from the store
 @param {String} key - the key of store data
Remove the value of key from the store @param { String } key - the key of store data