@tomassjosten/local-storage-cache
Leverage local storage to improve perfomance by caching data and expire cache
166
1
| Install | |
|---|---|
npm install @tomassjosten/local-storage-cache |
|
| Latest Version: | 1.0.0 |
| License: | MIT |
| Last Updated: | Dec 7, 2020 |
| Links: | GitHub · npm |
Maintainer: tomassjosten
local-storage-cache
Super simple package to cache data using local storage.
It only removes outdated data when calling getCachedData and the data has expired.
// To store data
cacheData('your-key', dataYouWantToStore, expireInMilliseconds);
// To get data
getCachedData('your-key');
Related Packages
@framit/meta-pixel
Simple, framework agnostic and GDPR Compliance library to track data to Meta Pix...
15,362
5
@homedia/meta-pixel
Simple, framework agnostic and GDPR Compliance library to track data to Meta Pix...
2,521
@dlhsoft/ganttcharthyperlibrary
Gantt Chart library for JavaScript and TypeScript with Angular, React, and Vue e...
2,650
2
@nativescript-community/geocoding
Provides access to native geocoding APIs for NativeScript apps (android.location...
2,162
8
Version History
| Version | Released | License |
|---|---|---|
| 1.0.0 | MIT |