ext-modular/redisclient.js

16 lines
364 B
JavaScript
Raw Normal View History

2016-05-31 09:55:08 +00:00
const cl = global.botanLoader;
const Dragonfly = global.Dragonfly;
const Redis = require( "redis" );
2022-04-03 12:55:43 +00:00
const SessConf = cl.load( "config.all" ).sx.modular.session;
2016-05-31 09:55:08 +00:00
var Client = Redis.createClient({
"legacyMode": true
, "url": `redis://${SessConf.config.host}:${SessConf.config.port}/${SessConf.config.database}`
});
2016-05-31 09:55:08 +00:00
2022-04-06 06:47:51 +00:00
Client.connect();
2016-05-31 09:55:08 +00:00
module.exports = Client;