unpkg/modules/utils/data.js

10 lines
230 B
JavaScript
Raw Normal View History

2018-12-17 17:38:05 +00:00
const redis = require('redis');
2018-07-06 17:53:16 +00:00
redis.debug_mode = process.env.DEBUG_REDIS != null;
const client = redis.createClient(
2018-12-17 17:38:05 +00:00
process.env.DATA_URL || process.env.OPENREDIS_URL || 'redis://localhost:6379'
2018-07-06 17:53:16 +00:00
);
module.exports = client;