text: const config = require('config');
  const redis = require('redis');
  const log = require('debug')('app:redis');
  
  const redisClient = redis.createClient({
    url: config.get('redis'),
  });
  
  redisClient.on('error', function (error) {
    if (process.env.NODE_ENV !== 'test') {
      log(error);
    }
  });
  
  module.exports = redisClient;
  