mongodb-queue
Advanced tools
Comparing version 0.3.0 to 0.3.1
{ | ||
"name": "mongodb-queue", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Message queues which uses MongoDB.", | ||
@@ -5,0 +5,0 @@ "main": "mongodb-queue.js", |
@@ -95,2 +95,19 @@ # mongodb-queue # | ||
### Delay Messages on Queue ### | ||
Default: `0` | ||
When a message is added to a queue, it is immediately available for retrieval. | ||
However, there are times when you might like to delay messages coming off a queue. | ||
ie. if you set delay to be `10`, then every message will only be available for | ||
retrieval 10s after being added. | ||
To delay all messages by 10 seconds, try this: | ||
``` | ||
var queue = Queue(db, 'my-queue', { delay : 10 }) | ||
``` | ||
This is now the default for every message added to the queue. | ||
## Use of MongoDB ## | ||
@@ -97,0 +114,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19996
166