2.0.0 • Published 2 years ago
@studyportals/data-storage v2.0.0
DataStorage
Create a browser independent local storage solution.
Installation:
This package is written in ES5 and is available on NPM.
npm install --save @studyportals/data-storage
Functions:
Javascript
import {DataStorage} from "@studyportals/data-storage";
/**
* Store any type of value with an TTL of 1800 seconds.
*/
DataStorage.store('AnyObject', {
prop1: 'test-1',
prop2: 'test-2'
}, 1800);
/**
* Retrieve from the storage.
*/
DataStorage.retrieve('AnyObject');
/**
* Remove an object from the storage.
*/
DataStorage.remove('AnyObject');
/**
* Add properties to an existing object with an TTL of 1800 seconds.
*/
DataStorage.update('AnyObject', {
prop3: 'test-3'
}, 1800);
2.0.0-11
2 years ago
2.0.0-10
2 years ago
2.0.0-6
2 years ago
2.0.0-5
2 years ago
2.0.0-4
2 years ago
2.0.0-3
2 years ago
2.0.0-2
2 years ago
2.0.0-1
2 years ago
2.0.0-0
2 years ago
2.0.0
2 years ago
2.0.0-9
2 years ago
2.0.0-8
2 years ago
2.0.0-7
2 years ago
1.3.0
5 years ago
1.2.2
6 years ago
1.2.1
6 years ago
1.2.1-alpha.1
6 years ago
1.2.1-alpha.0
6 years ago
1.2.0
6 years ago
1.1.0
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago