redis-manager-utils
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -7,7 +7,17 @@ const REDIS = require("redis"); | ||
constructor( databaseNumber , host , port , constants ) { | ||
this.databaseNumber = databaseNumber || 0; | ||
this.host || "localhost"; | ||
this.port = port || 6379; | ||
this.redis = undefined; | ||
this.c = constants || {}; | ||
if ( typeof databaseNumber === "object" ) { | ||
this.databaseNumber = config.databaseNumber || 0; | ||
this.host databaseNumber.host || "localhost"; | ||
this.port = databaseNumber.port || 6379; | ||
this.c = databaseNumber.constants || {}; | ||
} | ||
else { | ||
this.databaseNumber = databaseNumber || 0; | ||
this.host || "localhost"; | ||
this.port = port || 6379; | ||
this.redis = undefined; | ||
this.c = constants || {}; | ||
} | ||
this.redis = undefined; | ||
} | ||
@@ -14,0 +24,0 @@ |
{ | ||
"name": "redis-manager-utils", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
15157
375