diff --git a/test/acceptance/batch.test.js b/test/acceptance/batch.test.js index 13c254be..c870d3fe 100644 --- a/test/acceptance/batch.test.js +++ b/test/acceptance/batch.test.js @@ -11,19 +11,12 @@ var JobBackend = require('../../batch/job_backend'); var JobService = require('../../batch/job_service'); var UserDatabaseMetadataService = require('../../batch/user_database_metadata_service'); var JobCanceller = require('../../batch/job_canceller'); -var redisConfig = { - host: global.settings.redis_host, - port: global.settings.redis_port, - max: global.settings.redisPool, - idleTimeoutMillis: global.settings.redisIdleTimeoutMillis, - reapIntervalMillis: global.settings.redisReapIntervalMillis -}; -var metadataBackend = require('cartodb-redis')(redisConfig); +var metadataBackend = require('cartodb-redis')(redisUtils.getConfig()); describe('batch module', function() { var dbInstance = 'localhost'; var username = 'vizzuality'; - var redisPoolPublisher = new RedisPool(_.extend(redisConfig, { name: 'batch-publisher'})); + var redisPoolPublisher = new RedisPool(_.extend(redisUtils.getConfig(), { name: 'batch-publisher'})); var jobPublisher = new JobPublisher(redisPoolPublisher); var jobQueue = new JobQueue(metadataBackend, jobPublisher); var jobBackend = new JobBackend(metadataBackend, jobQueue); @@ -31,7 +24,7 @@ describe('batch module', function() { var jobCanceller = new JobCanceller(userDatabaseMetadataService); var jobService = new JobService(jobBackend, jobCanceller); - var batch = batchFactory(metadataBackend, redisConfig); + var batch = batchFactory(metadataBackend, redisUtils.getConfig()); before(function (done) { batch.start(); diff --git a/test/acceptance/job.callback-template.test.js b/test/acceptance/job.callback-template.test.js index 52f90ba3..9fdfbf67 100644 --- a/test/acceptance/job.callback-template.test.js +++ b/test/acceptance/job.callback-template.test.js @@ -4,14 +4,7 @@ var assert = require('../support/assert'); var redisUtils = require('../support/redis_utils'); var server = require('../../app/server')(); var querystring = require('qs'); -var redisConfig = { - host: global.settings.redis_host, - port: global.settings.redis_port, - max: global.settings.redisPool, - idleTimeoutMillis: global.settings.redisIdleTimeoutMillis, - reapIntervalMillis: global.settings.redisReapIntervalMillis -}; -var metadataBackend = require('cartodb-redis')(redisConfig); +var metadataBackend = require('cartodb-redis')(redisUtils.getConfig()); var batchFactory = require('../../batch'); var jobStatus = require('../../batch/job_status'); @@ -95,7 +88,7 @@ describe('Batch API callback templates', function () { assert.equal(actual.onerror, expected.onerror); } - var batch = batchFactory(metadataBackend, redisConfig); + var batch = batchFactory(metadataBackend, redisUtils.getConfig()); before(function (done) { batch.start(); diff --git a/test/acceptance/job.fallback.test.js b/test/acceptance/job.fallback.test.js index 2e23d4a2..f17ed56f 100644 --- a/test/acceptance/job.fallback.test.js +++ b/test/acceptance/job.fallback.test.js @@ -4,14 +4,7 @@ var assert = require('../support/assert'); var redisUtils = require('../support/redis_utils'); var server = require('../../app/server')(); var querystring = require('qs'); -var redisConfig = { - host: global.settings.redis_host, - port: global.settings.redis_port, - max: global.settings.redisPool, - idleTimeoutMillis: global.settings.redisIdleTimeoutMillis, - reapIntervalMillis: global.settings.redisReapIntervalMillis -}; -var metadataBackend = require('cartodb-redis')(redisConfig); +var metadataBackend = require('cartodb-redis')(redisUtils.getConfig()); var batchFactory = require('../../batch'); var jobStatus = require('../../batch/job_status'); @@ -36,7 +29,7 @@ describe('Batch API fallback job', function () { assert.equal(actual.onerror, expected.onerror); } - var batch = batchFactory(metadataBackend, redisConfig); + var batch = batchFactory(metadataBackend, redisUtils.getConfig()); before(function (done) { batch.start(); diff --git a/test/acceptance/job.timing.test.js b/test/acceptance/job.timing.test.js index ed88827b..a3d71fa7 100644 --- a/test/acceptance/job.timing.test.js +++ b/test/acceptance/job.timing.test.js @@ -4,14 +4,7 @@ var assert = require('../support/assert'); var redisUtils = require('../support/redis_utils'); var server = require('../../app/server')(); var querystring = require('qs'); -var redisConfig = { - host: global.settings.redis_host, - port: global.settings.redis_port, - max: global.settings.redisPool, - idleTimeoutMillis: global.settings.redisIdleTimeoutMillis, - reapIntervalMillis: global.settings.redisReapIntervalMillis -}; -var metadataBackend = require('cartodb-redis')(redisConfig); +var metadataBackend = require('cartodb-redis')(redisUtils.getConfig()); var batchFactory = require('../../batch'); var jobStatus = require('../../batch/job_status'); @@ -72,7 +65,7 @@ describe('Batch API query timing', function () { assert.equal(actual.onerror, expected.onerror); } - var batch = batchFactory(metadataBackend, redisConfig); + var batch = batchFactory(metadataBackend, redisUtils.getConfig()); before(function (done) { batch.start(); diff --git a/test/acceptance/job.use-case-1.test.js b/test/acceptance/job.use-case-1.test.js index c76004d9..4f3786ed 100644 --- a/test/acceptance/job.use-case-1.test.js +++ b/test/acceptance/job.use-case-1.test.js @@ -18,18 +18,11 @@ var server = require('../../app/server')(); var assert = require('../support/assert'); var redisUtils = require('../support/redis_utils'); var querystring = require('querystring'); -var redisConfig = { - host: global.settings.redis_host, - port: global.settings.redis_port, - max: global.settings.redisPool, - idleTimeoutMillis: global.settings.redisIdleTimeoutMillis, - reapIntervalMillis: global.settings.redisReapIntervalMillis -}; -var metadataBackend = require('cartodb-redis')(redisConfig); +var metadataBackend = require('cartodb-redis')(redisUtils.getConfig()); var batchFactory = require('../../batch'); describe('Use case 1: cancel and modify a done job', function () { - var batch = batchFactory(metadataBackend, redisConfig); + var batch = batchFactory(metadataBackend, redisUtils.getConfig()); before(function (done) { batch.start(); diff --git a/test/acceptance/job.use-case-10.test.js b/test/acceptance/job.use-case-10.test.js index 52cfe3a6..b6172ee5 100644 --- a/test/acceptance/job.use-case-10.test.js +++ b/test/acceptance/job.use-case-10.test.js @@ -18,18 +18,11 @@ var server = require('../../app/server')(); var assert = require('../support/assert'); var redisUtils = require('../support/redis_utils'); var querystring = require('querystring'); -var redisConfig = { - host: global.settings.redis_host, - port: global.settings.redis_port, - max: global.settings.redisPool, - idleTimeoutMillis: global.settings.redisIdleTimeoutMillis, - reapIntervalMillis: global.settings.redisReapIntervalMillis -}; -var metadataBackend = require('cartodb-redis')(redisConfig); +var metadataBackend = require('cartodb-redis')(redisUtils.getConfig()); var batchFactory = require('../../batch'); describe('Use case 10: cancel and modify a done multiquery job', function () { - var batch = batchFactory(metadataBackend, redisConfig); + var batch = batchFactory(metadataBackend, redisUtils.getConfig()); before(function (done) { batch.start(); diff --git a/test/acceptance/job.use-case-2.test.js b/test/acceptance/job.use-case-2.test.js index 244a6ac3..4e83e9e4 100644 --- a/test/acceptance/job.use-case-2.test.js +++ b/test/acceptance/job.use-case-2.test.js @@ -18,18 +18,11 @@ var server = require('../../app/server')(); var assert = require('../support/assert'); var redisUtils = require('../support/redis_utils'); var querystring = require('querystring'); -var redisConfig = { - host: global.settings.redis_host, - port: global.settings.redis_port, - max: global.settings.redisPool, - idleTimeoutMillis: global.settings.redisIdleTimeoutMillis, - reapIntervalMillis: global.settings.redisReapIntervalMillis -}; -var metadataBackend = require('cartodb-redis')(redisConfig); +var metadataBackend = require('cartodb-redis')(redisUtils.getConfig()); var batchFactory = require('../../batch'); describe('Use case 2: cancel a running job', function() { - var batch = batchFactory(metadataBackend, redisConfig); + var batch = batchFactory(metadataBackend, redisUtils.getConfig()); before(function (done) { batch.start(); diff --git a/test/acceptance/job.use-case-3.test.js b/test/acceptance/job.use-case-3.test.js index 4f5eafb6..644c0784 100644 --- a/test/acceptance/job.use-case-3.test.js +++ b/test/acceptance/job.use-case-3.test.js @@ -18,18 +18,11 @@ var server = require('../../app/server')(); var assert = require('../support/assert'); var redisUtils = require('../support/redis_utils'); var querystring = require('querystring'); -var redisConfig = { - host: global.settings.redis_host, - port: global.settings.redis_port, - max: global.settings.redisPool, - idleTimeoutMillis: global.settings.redisIdleTimeoutMillis, - reapIntervalMillis: global.settings.redisReapIntervalMillis -}; -var metadataBackend = require('cartodb-redis')(redisConfig); +var metadataBackend = require('cartodb-redis')(redisUtils.getConfig()); var batchFactory = require('../../batch'); describe('Use case 3: cancel a pending job', function() { - var batch = batchFactory(metadataBackend, redisConfig); + var batch = batchFactory(metadataBackend, redisUtils.getConfig()); before(function (done) { batch.start(); diff --git a/test/acceptance/job.use-case-4.test.js b/test/acceptance/job.use-case-4.test.js index 2c24af96..d3cdf9d1 100644 --- a/test/acceptance/job.use-case-4.test.js +++ b/test/acceptance/job.use-case-4.test.js @@ -18,18 +18,11 @@ var server = require('../../app/server')(); var assert = require('../support/assert'); var redisUtils = require('../support/redis_utils'); var querystring = require('querystring'); -var redisConfig = { - host: global.settings.redis_host, - port: global.settings.redis_port, - max: global.settings.redisPool, - idleTimeoutMillis: global.settings.redisIdleTimeoutMillis, - reapIntervalMillis: global.settings.redisReapIntervalMillis -}; -var metadataBackend = require('cartodb-redis')(redisConfig); +var metadataBackend = require('cartodb-redis')(redisUtils.getConfig()); var batchFactory = require('../../batch'); describe('Use case 4: modify a pending job', function() { - var batch = batchFactory(metadataBackend, redisConfig); + var batch = batchFactory(metadataBackend, redisUtils.getConfig()); before(function (done) { batch.start(); diff --git a/test/acceptance/job.use-case-5.test.js b/test/acceptance/job.use-case-5.test.js index a4581608..caab7663 100644 --- a/test/acceptance/job.use-case-5.test.js +++ b/test/acceptance/job.use-case-5.test.js @@ -18,18 +18,11 @@ var server = require('../../app/server')(); var assert = require('../support/assert'); var redisUtils = require('../support/redis_utils'); var querystring = require('querystring'); -var redisConfig = { - host: global.settings.redis_host, - port: global.settings.redis_port, - max: global.settings.redisPool, - idleTimeoutMillis: global.settings.redisIdleTimeoutMillis, - reapIntervalMillis: global.settings.redisReapIntervalMillis -}; -var metadataBackend = require('cartodb-redis')(redisConfig); +var metadataBackend = require('cartodb-redis')(redisUtils.getConfig()); var batchFactory = require('../../batch'); describe('Use case 5: modify a running job', function() { - var batch = batchFactory(metadataBackend, redisConfig); + var batch = batchFactory(metadataBackend, redisUtils.getConfig()); before(function (done) { batch.start(); diff --git a/test/acceptance/job.use-case-6.test.js b/test/acceptance/job.use-case-6.test.js index 8f56c546..971970f3 100644 --- a/test/acceptance/job.use-case-6.test.js +++ b/test/acceptance/job.use-case-6.test.js @@ -18,18 +18,11 @@ var server = require('../../app/server')(); var assert = require('../support/assert'); var redisUtils = require('../support/redis_utils'); var querystring = require('querystring'); -var redisConfig = { - host: global.settings.redis_host, - port: global.settings.redis_port, - max: global.settings.redisPool, - idleTimeoutMillis: global.settings.redisIdleTimeoutMillis, - reapIntervalMillis: global.settings.redisReapIntervalMillis -}; -var metadataBackend = require('cartodb-redis')(redisConfig); +var metadataBackend = require('cartodb-redis')(redisUtils.getConfig()); var batchFactory = require('../../batch'); describe('Use case 6: modify a done job', function() { - var batch = batchFactory(metadataBackend, redisConfig); + var batch = batchFactory(metadataBackend, redisUtils.getConfig()); before(function (done) { batch.start(); diff --git a/test/acceptance/job.use-case-7.test.js b/test/acceptance/job.use-case-7.test.js index 1180078a..118a5c8f 100644 --- a/test/acceptance/job.use-case-7.test.js +++ b/test/acceptance/job.use-case-7.test.js @@ -18,18 +18,11 @@ var server = require('../../app/server')(); var assert = require('../support/assert'); var redisUtils = require('../support/redis_utils'); var querystring = require('querystring'); -var redisConfig = { - host: global.settings.redis_host, - port: global.settings.redis_port, - max: global.settings.redisPool, - idleTimeoutMillis: global.settings.redisIdleTimeoutMillis, - reapIntervalMillis: global.settings.redisReapIntervalMillis -}; -var metadataBackend = require('cartodb-redis')(redisConfig); +var metadataBackend = require('cartodb-redis')(redisUtils.getConfig()); var batchFactory = require('../../batch'); describe('Use case 7: cancel a job with quotes', function() { - var batch = batchFactory(metadataBackend, redisConfig); + var batch = batchFactory(metadataBackend, redisUtils.getConfig()); before(function (done) { batch.start(); diff --git a/test/acceptance/job.use-case-8.test.js b/test/acceptance/job.use-case-8.test.js index 41863349..5b992d3e 100644 --- a/test/acceptance/job.use-case-8.test.js +++ b/test/acceptance/job.use-case-8.test.js @@ -18,18 +18,11 @@ var server = require('../../app/server')(); var assert = require('../support/assert'); var redisUtils = require('../support/redis_utils'); var querystring = require('querystring'); -var redisConfig = { - host: global.settings.redis_host, - port: global.settings.redis_port, - max: global.settings.redisPool, - idleTimeoutMillis: global.settings.redisIdleTimeoutMillis, - reapIntervalMillis: global.settings.redisReapIntervalMillis -}; -var metadataBackend = require('cartodb-redis')(redisConfig); +var metadataBackend = require('cartodb-redis')(redisUtils.getConfig()); var batchFactory = require('../../batch'); describe('Use case 8: cancel a running multiquery job', function() { - var batch = batchFactory(metadataBackend, redisConfig); + var batch = batchFactory(metadataBackend, redisUtils.getConfig()); before(function (done) { batch.start(); diff --git a/test/acceptance/job.use-case-9.test.js b/test/acceptance/job.use-case-9.test.js index 3ba2cd5f..c68fa383 100644 --- a/test/acceptance/job.use-case-9.test.js +++ b/test/acceptance/job.use-case-9.test.js @@ -18,18 +18,11 @@ var server = require('../../app/server')(); var assert = require('../support/assert'); var redisUtils = require('../support/redis_utils'); var querystring = require('querystring'); -var redisConfig = { - host: global.settings.redis_host, - port: global.settings.redis_port, - max: global.settings.redisPool, - idleTimeoutMillis: global.settings.redisIdleTimeoutMillis, - reapIntervalMillis: global.settings.redisReapIntervalMillis -}; -var metadataBackend = require('cartodb-redis')(redisConfig); +var metadataBackend = require('cartodb-redis')(redisUtils.getConfig()); var batchFactory = require('../../batch'); describe('Use case 9: modify a pending multiquery job', function() { - var batch = batchFactory(metadataBackend, redisConfig); + var batch = batchFactory(metadataBackend, redisUtils.getConfig()); before(function (done) { batch.start(); diff --git a/test/integration/batch/batch.multiquery.test.js b/test/integration/batch/batch.multiquery.test.js index 68062320..3c9d739a 100644 --- a/test/integration/batch/batch.multiquery.test.js +++ b/test/integration/batch/batch.multiquery.test.js @@ -5,15 +5,7 @@ var assert = require('../../support/assert'); var redisUtils = require('../../support/redis_utils'); var queue = require('queue-async'); -var redisConfig = { - host: global.settings.redis_host, - port: global.settings.redis_port, - max: global.settings.redisPool, - idleTimeoutMillis: global.settings.redisIdleTimeoutMillis, - reapIntervalMillis: global.settings.redisReapIntervalMillis -}; - -var metadataBackend = require('cartodb-redis')(redisConfig); +var metadataBackend = require('cartodb-redis')(redisUtils.getConfig()); var StatsD = require('node-statsd').StatsD; var statsdClient = new StatsD(global.settings.statsd); @@ -29,7 +21,7 @@ var JobQueue = require(BATCH_SOURCE + 'job_queue'); var JobBackend = require(BATCH_SOURCE + 'job_backend'); var JobFactory = require(BATCH_SOURCE + 'models/job_factory'); -var redisPoolPublisher = new RedisPool(_.extend(redisConfig, { name: 'batch-publisher'})); +var redisPoolPublisher = new RedisPool(_.extend(redisUtils.getConfig(), { name: 'batch-publisher'})); var jobPublisher = new JobPublisher(redisPoolPublisher); var jobQueue = new JobQueue(metadataBackend, jobPublisher); var jobBackend = new JobBackend(metadataBackend, jobQueue); @@ -67,7 +59,7 @@ function assertJob(job, expectedStatus, done) { } describe('batch multiquery', function() { - var batch = batchFactory(metadataBackend, redisConfig, statsdClient); + var batch = batchFactory(metadataBackend, redisUtils.getConfig(), statsdClient); before(function (done) { batch.start(); diff --git a/test/integration/batch/job_backend.test.js b/test/integration/batch/job_backend.test.js index 6318bddd..e769ad75 100644 --- a/test/integration/batch/job_backend.test.js +++ b/test/integration/batch/job_backend.test.js @@ -15,16 +15,8 @@ var JobPublisher = require(BATCH_SOURCE + 'job_publisher'); var JobFactory = require(BATCH_SOURCE + 'models/job_factory'); var jobStatus = require(BATCH_SOURCE + 'job_status'); -var redisConfig = { - host: global.settings.redis_host, - port: global.settings.redis_port, - max: global.settings.redisPool, - idleTimeoutMillis: global.settings.redisIdleTimeoutMillis, - reapIntervalMillis: global.settings.redisReapIntervalMillis -}; - -var metadataBackend = require('cartodb-redis')(redisConfig); -var redisPoolPublisher = new RedisPool(_.extend(redisConfig, { name: 'batch-publisher'})); +var metadataBackend = require('cartodb-redis')(redisUtils.getConfig()); +var redisPoolPublisher = new RedisPool(_.extend(redisUtils.getConfig(), { name: 'batch-publisher'})); var jobPublisher = new JobPublisher(redisPoolPublisher); var jobQueue = new JobQueue(metadataBackend, jobPublisher); diff --git a/test/integration/batch/job_canceller.test.js b/test/integration/batch/job_canceller.test.js index c41df973..538c0ced 100644 --- a/test/integration/batch/job_canceller.test.js +++ b/test/integration/batch/job_canceller.test.js @@ -17,16 +17,8 @@ var UserDatabaseMetadataService = require(BATCH_SOURCE + 'user_database_metadata var JobCanceller = require(BATCH_SOURCE + 'job_canceller'); var PSQL = require('cartodb-psql'); -var redisConfig = { - host: global.settings.redis_host, - port: global.settings.redis_port, - max: global.settings.redisPool, - idleTimeoutMillis: global.settings.redisIdleTimeoutMillis, - reapIntervalMillis: global.settings.redisReapIntervalMillis -}; - -var metadataBackend = require('cartodb-redis')(redisConfig); -var redisPoolPublisher = new RedisPool(_.extend(redisConfig, { name: 'batch-publisher'})); +var metadataBackend = require('cartodb-redis')(redisUtils.getConfig()); +var redisPoolPublisher = new RedisPool(_.extend(redisUtils.getConfig(), { name: 'batch-publisher'})); var jobPublisher = new JobPublisher(redisPoolPublisher); var jobQueue = new JobQueue(metadataBackend, jobPublisher); var jobBackend = new JobBackend(metadataBackend, jobQueue); diff --git a/test/integration/batch/job_publisher.test.js b/test/integration/batch/job_publisher.test.js index d6690247..57daf733 100644 --- a/test/integration/batch/job_publisher.test.js +++ b/test/integration/batch/job_publisher.test.js @@ -8,19 +8,12 @@ var assert = require('../../support/assert'); var _ = require('underscore'); var RedisPool = require('redis-mpool'); +var redisUtils = require('../../support/redis_utils'); var JobPublisher = require(BATCH_SOURCE + 'job_publisher'); -var redisConfig = { - host: global.settings.redis_host, - port: global.settings.redis_port, - max: global.settings.redisPool, - idleTimeoutMillis: global.settings.redisIdleTimeoutMillis, - reapIntervalMillis: global.settings.redisReapIntervalMillis -}; - -var redisPoolPublisher = new RedisPool(_.extend(redisConfig, { name: 'batch-publisher'})); -var redisPoolSubscriber = new RedisPool(_.extend(redisConfig, { name: 'batch-subscriber'})); +var redisPoolPublisher = new RedisPool(_.extend(redisUtils.getConfig(), { name: 'batch-publisher'})); +var redisPoolSubscriber = new RedisPool(_.extend(redisUtils.getConfig(), { name: 'batch-subscriber'})); var HOST = 'wadus'; var CHANNEL = 'batch:hosts'; diff --git a/test/integration/batch/job_runner.test.js b/test/integration/batch/job_runner.test.js index 6348ad14..5f32cd8a 100644 --- a/test/integration/batch/job_runner.test.js +++ b/test/integration/batch/job_runner.test.js @@ -19,16 +19,9 @@ var JobService = require(BATCH_SOURCE + 'job_service'); var JobRunner = require(BATCH_SOURCE + 'job_runner'); var QueryRunner = require(BATCH_SOURCE + 'query_runner'); -var redisConfig = { - host: global.settings.redis_host, - port: global.settings.redis_port, - max: global.settings.redisPool, - idleTimeoutMillis: global.settings.redisIdleTimeoutMillis, - reapIntervalMillis: global.settings.redisReapIntervalMillis -}; -var metadataBackend = require('cartodb-redis')(redisConfig); -var redisPoolPublisher = new RedisPool(_.extend(redisConfig, { name: 'batch-publisher'})); +var metadataBackend = require('cartodb-redis')(redisUtils.getConfig()); +var redisPoolPublisher = new RedisPool(_.extend(redisUtils.getConfig(), { name: 'batch-publisher'})); var jobPublisher = new JobPublisher(redisPoolPublisher); var jobQueue = new JobQueue(metadataBackend, jobPublisher); var jobBackend = new JobBackend(metadataBackend, jobQueue); diff --git a/test/integration/batch/job_service.test.js b/test/integration/batch/job_service.test.js index 9a774325..c08f03ff 100644 --- a/test/integration/batch/job_service.test.js +++ b/test/integration/batch/job_service.test.js @@ -18,16 +18,8 @@ var JobCanceller = require(BATCH_SOURCE + 'job_canceller'); var JobService = require(BATCH_SOURCE + 'job_service'); var PSQL = require('cartodb-psql'); -var redisConfig = { - host: global.settings.redis_host, - port: global.settings.redis_port, - max: global.settings.redisPool, - idleTimeoutMillis: global.settings.redisIdleTimeoutMillis, - reapIntervalMillis: global.settings.redisReapIntervalMillis -}; - -var metadataBackend = require('cartodb-redis')(redisConfig); -var redisPoolPublisher = new RedisPool(_.extend(redisConfig, { name: 'batch-publisher'})); +var metadataBackend = require('cartodb-redis')(redisUtils.getConfig()); +var redisPoolPublisher = new RedisPool(_.extend(redisUtils.getConfig(), { name: 'batch-publisher'})); var jobPublisher = new JobPublisher(redisPoolPublisher); var jobQueue = new JobQueue(metadataBackend, jobPublisher); var jobBackend = new JobBackend(metadataBackend, jobQueue); diff --git a/test/support/redis_utils.js b/test/support/redis_utils.js index 105a1e0c..b69a49b6 100644 --- a/test/support/redis_utils.js +++ b/test/support/redis_utils.js @@ -22,3 +22,7 @@ module.exports.clean = function clean(pattern, callback) { metadataBackend.redisCmd(5, 'DEL', keys, callback); }); }; + +module.exports.getConfig = function getConfig() { + return redisConfig; +};