are indexeddb/localforage reads resolved from a synchronous buffer?
问题 Taking the following pseudo code localforageStore.setItem('foo', 'bar') .then(console.log('foo is persisted to disk')); localforageStore.getItem('foo') .then(v => console.info('foo is '+v)); // A, B or C? Is the console.info:- A. Guaranteed to display 'bar' B. Guaranteed to display 'undefined' C. Indeterminate i.e. even though the write to disc is async, will a synchronous read be resolved from a buffer internal to indexeddb and/or localforage? 回答1: I took a look at the localForage indexedDB