0.3.1 • Published 8 years ago

refuze v0.3.1

Weekly downloads
6
License
ISC
Repository
github
Last release
8 years ago

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", ["fred@sintaxi.com"])
fuze.do("in 3 days", "sendEmailVerificationReminder", ["fred@sintaxi.com"])

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
0.3.1

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago