async initialize () { if (this.storage) { var keys = await this.storage.keys() return Promise.all(keys.map(async key => { this.cache[key] = await this.storage.getItem(key) })) } }
async initialize () { if (this.storage) { var keys = await this.storage.keys() return Promise.all(keys.map(async key => { this.cache[key] = await this.storage.getItem(key) })) } }