NQ-CACHE
安装
npm install nq-cache
使用
import { promiseMemoryCache, promiseSessionStorageCache, pureFuncMemoryCache } from 'nq-cache'
const { promiseMemoryCache, promiseSessionStorageCache, pureFuncMemoryCache } = require('nq-cache')
UMD
(未压缩且保留注释,需自行引入 uglify
处理)
const { promiseMemoryCache, promiseSessionStorageCache, pureFuncMemoryCache } = require('nq-cache/dist/nq-cache')
<script type="text/javascript" href="nq-cache/dist/nq-cache.min.js"></script>
<script>
var cache = window.cache
</script>
本地开发
npm install
npm test
npm run build
npm run flow
npm run lint
npm run doc