scgi

browser cache with garbage collection tool

Usage no npm install needed!

<script type="module">
  import scgi from 'https://cdn.skypack.dev/scgi';
</script>

README

Scgi

browser cache with garbage collection tool

Installation

npm i scgi

Usage

Notice: cahe will be deleted after expired

import { Scgi } from 'scgi'

let c = new Scgi()

// set value to cache
c.value = { value: 'I am the key', seconds: 10 }

// values of cache
c.values // { value: 'I am the key', seconds: 10 }