var azurecache = require('azurecache');

module.exports = function(fake){
    if(fake){
        exports.get = function(data,callback){ if(typeof callback === 'function'){callback(null,null);} else { return null }};
        exports.put = function(data,callback){ if(typeof callback === 'function'){callback(null,null);} else { return null }};
        exports.remove = function(data,callback){ if(typeof callback === 'function'){callback(null,null);} else { return null }};
        module.exports = exports;
    } else {
        module.exports = azurecache.create({
            identifier: process.env.CACHE_ENDPOINT,
            token: process.env.CACHE_KEY,
            ttl: process.env.CACHE_TTL
        });
    }
};
var azurecache = require('azurecache');

module.exports = function(fake){
    if(fake){
        exports.get = function(data,callback){ if(typeof callback === 'function'){callback(null,null);} else { return null }};
        exports.put = function(id,data,tts){ return true; };
        exports.remove = function(data,callback){ if(typeof callback === 'function'){callback(null,null);} else { return null }};
        module.exports = exports;
    } else {
        module.exports = azurecache.create({
            identifier: process.env.CACHE_ENDPOINT,
            token: process.env.CACHE_KEY,
            ttl: process.env.CACHE_TTL
        });
    }
};
Fix IDE complaining about Cache.put only expecting 2 arguments
Fix IDE complaining about Cache.put only expecting 2 arguments
