johnny-cache-ls
v0.4.2
Published
Cache important data with the Script in Black
Downloads
4
Maintainers
Readme
Johnny Cache
Simple localStorage interface with timestamp based filtering and management
Installation
NPM
npm install johnny-cache-ls
CDN
<script type="module" src="https://unpkg.com/johnny-cache-ls"></script>
Usage
_Note:
ES6 Style Import
import JohnnyCache from 'johnny-cache-ls';
let cache = new JohnnyCache()
cache.set('stage-clothes', { color: black, coatLength: 'long' })
console.log(cache.get('stage-clothes'))