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