Kue基于 Redis 的優(yōu)先級隊列
Kue 是一款為 node.js 而構(gòu)建,由 redis 支持的優(yōu)先級隊列。
更新記錄:
運行系統(tǒng)環(huán)境要求:
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: '[email protected]'
, template: 'welcome-email'
}).priority('high').save()評論
圖片
表情
