没有合适的资源?快使用搜索试试~ 我知道了~
co-cacheable:使用 co 和 cacheable 缓存您的生成器函数结果
共4个文件
gitignore:1个
json:1个
md:1个
需积分: 9 0 下载量 2 浏览量
2021-06-01
05:42:43
上传
评论
收藏 2KB ZIP 举报
温馨提示
可共同缓存 使您能够用包装生成器函数 用法 var cached = require('co-cacheable')({ client: new RedisClient() prefix: 'cacheable' }) function User() { } User.prototype.getDetails = function* getDetails() { // fetch from a remote API } User.prototype.thunkedMethod = function() { return function(callback) { } } // manually mark this function as thunked method User.prototype.thunkedMethod.isThunk = true cach
资源推荐
资源详情
资源评论
收起资源包目录
co-cacheable-master.zip (4个子文件)
co-cacheable-master
.gitignore 27B
package.json 624B
index.js 1KB
README.md 593B
共 4 条
- 1
资源评论
Matt小特
- 粉丝: 30
- 资源: 4540
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Docker容器配置进阶
- tensorflow-gpu-2.7.4-cp37-cp37m-manylinux2010-x86-64.whl
- 多段线、 圆、弧转多段线(仅我可见)
- tensorflow-2.7.2-cp38-cp38-manylinux2010-x86-64.whl
- yeyue-p8Yi4-ve4a83792.apk
- tensorflow-gpu-2.7.3-cp38-cp38-manylinux2010-x86-64.whl
- 五相感应电机矢量控制模型MATLAB
- RGLED (1) (1).circ
- IMG_20240427_215747.jpg
- python下前端WEB学习笔记
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功