qiao-cache

4.5.3 • Public • Published

qiao-cache

npm version npm downloads

nodejs 下 cache 能力

usage

// commonjs
const { cache } = require('qiao-cache');

// es6
import { cache } from 'qiao-cache';

api

cache

// set
cache('test', 'hello');

// get
const s = cache('test');
console.log(s); // hello

// del
cache('test', null);
console.log(cache('test')); // undefined

Readme

Keywords

Package Sidebar

Install

npm i qiao-cache

Weekly Downloads

1

Version

4.5.3

License

MIT

Unpacked Size

5.17 kB

Total Files

6

Last publish

Collaborators

  • npm_insistime