index.js
function get (key) {
  return isExpired(key).then(hasExpired => {
    if (hasExpired) {
      return remove(key).then(() => Promise.resolve(undefined))
    } else {
      return storage.get(`${prefix}${key}`)
    }
  })
}
function get (key) {
  return isExpired(key).then(hasExpired => {
    if (hasExpired) {
      return remove(key).then(() => Promise.resolve(undefined))
    } else {
      return storage.get(`${prefix}${key}`)
    }
  })
}
function get ( key ) { return isExpired ( key ) . then ( hasExpired => { if ( hasExpired ) { return remove ( key ) . then ( ( ) => Promise . resolve ( undefined ) ) } else { return storage . get ( ` ${ prefix } ${ key } ` ) } } ) }
Retrieve value from cache. Remove if expired.
@param {String} key
Retrieve value from cache . Remove if expired .