johnny-cache-ls

0.4.2 • Public • Published

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

/johnny-cache-ls/

    Package Sidebar

    Install

    npm i johnny-cache-ls

    Weekly Downloads

    6

    Version

    0.4.2

    License

    MIT

    Unpacked Size

    534 kB

    Total Files

    19

    Last publish

    Collaborators

    • noolan