Upgraded redis client but use legacy mode
This commit is contained in:
parent
d0ef93e58c
commit
df548739da
@ -5,11 +5,10 @@ const Redis = require( "redis" );
|
|||||||
|
|
||||||
const SessConf = cl.load( "config.all" ).sx.modular.session;
|
const SessConf = cl.load( "config.all" ).sx.modular.session;
|
||||||
|
|
||||||
var Client = Redis.createClient(
|
var Client = Redis.createClient({
|
||||||
SessConf.config.port
|
"legacyMode": true
|
||||||
, SessConf.config.host
|
, "url": `redis://${SessConf.config.host}:${SessConf.config.port}/${SessConf.config.database}`
|
||||||
, SessConf.config.options
|
});
|
||||||
);
|
|
||||||
|
|
||||||
Client.addListener( "error", ( e ) => { throw e; } );
|
Client.addListener( "error", ( e ) => { throw e; } );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user