Skip to content

Instantly share code, notes, and snippets.

@bcoe
Created September 12, 2011 19:56
Show Gist options
  • Save bcoe/1212220 to your computer and use it in GitHub Desktop.
Save bcoe/1212220 to your computer and use it in GitHub Desktop.
example-karait.js
exports.Queue = function(params, onQueueReady) {
if (typeof(params) === 'function') {
onQueueReady = params;
params = {};
}
var defaults = {
host: 'localhost',
port: 27017,
database: 'karait',
queue: 'messages',
averageMessageSize: 8192,
queueSize: 4096
};
extend(this, defaults, params);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment