Created
September 12, 2011 19:56
-
-
Save bcoe/1212220 to your computer and use it in GitHub Desktop.
example-karait.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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