Kue 介绍
Kue 是一款为 node.js 而构建,由 redis
支持的优先级队列。
更新记录:
运行系统环境要求:
- Redis >= 2.6.12
安装
-
Latest release:
$ npm install kue
-
Master branch:
$ npm install http://github.com/Automattic/kue/tarball/master
特性:
-
Delayed jobs
-
Distribution of parallel work load
-
Job event and progress pubsub
-
Job TTL
-
Optional retries with backoff
-
Graceful workers shutdown
-
Full-text search capabilities
-
RESTful JSON API
-
Rich integrated UI
-
Infinite scrolling
-
UI progress indication
-
Job specific logging
-
Powered by Redis
示例代码:
queue.create('email', { title: 'welcome email for tj' , to: 'tj@learnboost.com' , template: 'welcome-email' }).priority('high').save()
Kue 官网
https://github.com/Automattic/kue
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。