Kue基于 Redis 的优先级队列
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()
评论