Storage Factory¶
This is a library to help with JSON and local/session storage.
Original Library taken from: https://github.com/mghweb/mgh-storage-factory
This is used in the Recently Viewed Extension
Installation¶
Terminal
pnpm add @mvps-genesis/storage-factory
Example Usage¶
import StorageFactory from '@mvps-genesis/storage-factory';
StorageFactory.get('key');
StorageFactory.set('key', {foo: 'bar'});
StorageFactory.sessionGet('key');
StorageFactory.sessionSet('key', {foo: 'bar'});