unpkg/server/utils/data.js

10 lines
230 B
JavaScript

const redis = require("redis");
redis.debug_mode = process.env.DEBUG_REDIS != null;
const client = redis.createClient(
process.env.DATA_URL || process.env.OPENREDIS_URL || "redis://localhost:6379"
);
module.exports = client;