traxxx/src/redis.js

16 lines
301 B
JavaScript
Raw Normal View History

'use strict';
const config = require('config');
const redis = require('redis');
const logger = require('./logger')(__filename);
logger.verbose('Redis module initialized');
const redisClient = redis.createClient({
socket: config.redis,
});
redisClient.connect();
module.exports = redisClient;