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
var Bluebird = require('bluebird'); | |
var redis = require('redis'); | |
var _ = require('lodash'); | |
function getSet(key, transmute){ | |
return new Bluebird(function(resolve, reject){ | |
function setAtomic(key, count){ | |
var counts = count; | |
// create a UNIQUE CLIENT CONNECTION for this process |