/johnny-cache

Simple localStorage interface with timestamp based filtering and management

Primary LanguageJavaScript

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