refuze
v0.3.1
Published
A natural language job queue for doing things later. Built on Redis.
Downloads
18
Maintainers
Readme
refuze
A natural language job queue for doing things later. Built on Redis.
Example
var refuze = require("refuze")({})
var fuze = refuze.createClient("namespace")
// set actions.
fuze.on("sendWelcomeEmail", function(email){
// its that easy.
})
fuze.on("sendEmailVerificationReminder", function(email){
// send email verification reminder.
})
// set differed actions...
fuze.do("in 4 hours", "sendWelcomeEmail", ["[email protected]"])
fuze.do("in 3 days", "sendEmailVerificationReminder", ["[email protected]"])
Getting started
To run the project locally, you’ll need to have a recent version of Node.js and Redis installed. Next, clone the project:
# Clone the project
git clone https://github.com/sintaxi/refuze
cd refuze
# Install dependencies
npm install
You’ll also want to use the included config when you start Redis:
redis-server ./config/redis.conf
Now, you can run the tests:
npm test