1.0.0 • Published 3 years ago
@tomassjosten/local-storage-cache v1.0.0
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');
1.0.0
3 years ago