A volatile in-memory storage driver for localForage, designed for unit-testing and fallback scenarios where no persistent storage is available. Data is lost on page reload. Version 0.9.2 requires localForage >=1.4.0. Works consistently with serialization, so retrieved objects are not mutated. Lightweight and simple, with no native dependencies.
npm install localforage-memoryStorageDriverNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to define and set the memory driver, then set and get an item.
Do not use for persistent storage; intended for testing or fallback.
Use memoryStorageDriver._driver when calling setDriver.
Upgrade localforage to >=1.4.0.
Call localforage.defineDriver(memoryStorageDriver) before setDriver.