Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 348 Bytes

README.md

File metadata and controls

27 lines (16 loc) · 348 Bytes

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 }