@tomassjosten/local-storage-cache
v1.0.0
Published
Leverage local storage to improve perfomance by caching data and expire cache
Downloads
18
Maintainers
Readme
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');