Memory Keys - macmcmeans/localDataStorage GitHub Wiki
As the name suggests, key data is stored in volatile memory. There is no storage overhead and performance is orders of magnitude faster, at the slight risk of data loss.
Keys are set as properties of the object you created when you instantiated localDataStorage. For example, this code
const myStorage = localDataStorage( 'hackerNewsVue' );
would cause all Memory Keys to be stored as properties of the myStorage object, and as long as the object is intact so are the key value pairs.
In most cases, using Memory Keys is identical to using disk-based localStorage keys. For example, get and _get (Memory Key method) are practically the same.
✨ To mitigate the risk of data loss, consider using the backup and restore methods.
📝 NOTE: Memory Keys do not trigger storage change events.