p3x-redis-ui-server
Advanced tools
Comparing version 2024.4.172 to 2024.4.173
@@ -28,3 +28,3 @@ [//]: #@corifeus-header | ||
[**P3X-REDIS-UI-SERVER**](https://corifeus.com/redis-ui-server) Build v2024.4.172 | ||
[**P3X-REDIS-UI-SERVER**](https://corifeus.com/redis-ui-server) Build v2024.4.173 | ||
@@ -31,0 +31,0 @@ [![NPM](https://img.shields.io/npm/v/p3x-redis-ui-server.svg)](https://www.npmjs.com/package/p3x-redis-ui-server) [![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software) |
{ | ||
"name": "p3x-redis-ui-server", | ||
"version": "2024.4.172", | ||
"version": "2024.4.173", | ||
"description": "๐๏ธ The p3x-redis-ui-server package motor that is connected to the p3x-redis-ui-material web user interface", | ||
@@ -5,0 +5,0 @@ "corifeus": { |
@@ -15,3 +15,3 @@ # This is a development package | ||
--- | ||
# ๐๏ธ The p3x-redis-ui-server package motor that is connected to the p3x-redis-ui-material web user interface v2024.4.172 | ||
# ๐๏ธ The p3x-redis-ui-server package motor that is connected to the p3x-redis-ui-material web user interface v2024.4.173 | ||
@@ -116,3 +116,3 @@ | ||
[**P3X-REDIS-UI-SERVER**](https://corifeus.com/redis-ui-server) Build v2024.4.172 | ||
[**P3X-REDIS-UI-SERVER**](https://corifeus.com/redis-ui-server) Build v2024.4.173 | ||
@@ -119,0 +119,0 @@ [![NPM](https://img.shields.io/npm/v/p3x-redis-ui-server.svg)](https://www.npmjs.com/package/p3x-redis-ui-server) [![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software) |
@@ -26,5 +26,6 @@ const donationWareFeatureError = new Error('donation-ware-feature') | ||
let maxDb = 512 | ||
await new Promise(resolve => setTimeout(resolve, 1000)); | ||
while(tryUntilSelectDatabaseIsNotOk) { | ||
try { | ||
currentDb++ | ||
await redis.call('select', currentDb) | ||
@@ -36,3 +37,5 @@ //console.info('found correct database index', currentDb) | ||
} | ||
currentDb++ | ||
} catch(e) { | ||
console.error(e); | ||
console.warn('found wrong current db index', currentDb) | ||
@@ -44,3 +47,7 @@ tryUntilSelectDatabaseIsNotOk = false | ||
if (db <= totalDb) { | ||
await redis.call('select', db) | ||
try { | ||
await redis.call('select', db) | ||
} catch(e) { | ||
console.error(e) | ||
} | ||
} | ||
@@ -69,3 +76,3 @@ console.log('calculated max databases index', totalDb) | ||
commands = await redis.command() | ||
console.info(options.payload.connection.name, 'instance command listing is available', JSON.stringify(commands)) | ||
console.info(options.payload.connection.name, 'instance command listing is available') // , JSON.stringify(commands)) | ||
} catch(e) { | ||
@@ -72,0 +79,0 @@ console.warn(options,payload.connection.name, 'instance command listing is not available, not all redis instances are not available command listing', e) |
@@ -77,2 +77,3 @@ const Redis = require('../../../lib/ioredis-cluster') | ||
let redis = new Redis(redisConfig) | ||
console.info('redis-test-connection', redisConfig) | ||
redis.on('error', function (error) { | ||
@@ -79,0 +80,0 @@ console.error(error) |
165057
2426