localforage-driver-memory
Version:
in-memory localforage driver that resets on page reload
13 lines • 491 B
JavaScript
import { clone, getKeyPrefix, serialiser } from 'localforage-driver-commons';
import { Store } from './Store';
export function _initStorage(options) {
var opts = options ? clone(options) : {};
var kp = getKeyPrefix(opts, this._defaultConfig);
var store = Store.resolve(kp);
this._dbInfo = opts;
this._dbInfo.serializer = serialiser;
this._dbInfo.keyPrefix = kp;
this._dbInfo.mStore = store;
return Promise.resolve();
}
//# sourceMappingURL=_initStorage.js.map