index.js
function flushExpired () {
  return storage.keys().then(keys => {
    const cacheKeys = keys.filter(key => key.indexOf(expire) === 0)
    return Promise.all(cacheKeys.map(key => get(key.slice(prefix.length))))
  })
}
function flushExpired () {
  return storage.keys().then(keys => {
    const cacheKeys = keys.filter(key => key.indexOf(expire) === 0)
    return Promise.all(cacheKeys.map(key => get(key.slice(prefix.length))))
  })
}
function flushExpired ( ) { return storage . keys ( ) . then ( keys => { const cacheKeys = keys . filter ( key => key . indexOf ( expire ) === 0 ) return Promise . all ( cacheKeys . map ( key => get ( key . slice ( prefix . length ) ) ) ) } ) }
Remove all expired values from storage
Remove all expired values from storage