1.0.3 • Published 1 year ago

@rbarisic/local-storage-cache v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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');

Original by Tomas Sjösten, forked by me (rbarisic) to include typing and module exports

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago