没有合适的资源?快使用搜索试试~ 我知道了~
promise-async-cache:简单的lib通过异步加载过程缓存数据
共13个文件
js:5个
eslintrc:1个
yml:1个
需积分: 9 0 下载量 187 浏览量
2021-05-19
12:42:58
上传
评论
收藏 6KB ZIP 举报
温馨提示
承诺异步缓存 感谢的初始实现:) 安装 通过npm安装: $ npm install promise-async-cache 用法 // the example uses es6 but it works with es5 as well import PromiseAsyncCache from 'promise-async-cache' ; // loading value into the cache const cache = new PromiseAsyncCache ( { load ( key ) { // load async data // then return a promise with the value to be cached } } ) ; // getting value from the cache cache . get
资源推荐
资源详情
资源评论
收起资源包目录
promise-async-cache-master.zip (13个子文件)
promise-async-cache-master
.gitignore 71B
.eslintrc 344B
compiler.js 91B
package.json 888B
src
debug.js 109B
index.js 2KB
.travis.yml 50B
LICENSE 1KB
spec
promise-async-cache.spec.js 1KB
spec-helper.js 74B
README.md 1KB
.npmignore 4B
.editorconfig 145B
共 13 条
- 1
资源评论
Untournant
- 粉丝: 50
- 资源: 4587
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功