forked from DebaucheryLibrarian/traxxx
16 lines
301 B
JavaScript
16 lines
301 B
JavaScript
|
'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;
|