diff --git a/README.md b/README.md index 444c931..a376479 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ https://corifeus.com/redis-ui --- -# 🏍️ The p3x-redis-ui-server package motor that is connected to the p3x-redis-ui-material web user interface v2024.4.150 +# 🏍️ The p3x-redis-ui-server package motor that is connected to the p3x-redis-ui-material web user interface v2024.4.151 @@ -112,7 +112,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https:// --- -[**P3X-REDIS-UI-SERVER**](https://corifeus.com/redis-ui-server) Build v2024.4.150 +[**P3X-REDIS-UI-SERVER**](https://corifeus.com/redis-ui-server) Build v2024.4.151 [![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) diff --git a/artifacts/cluster.md b/artifacts/cluster.md index 6e244c0..52d064e 100644 --- a/artifacts/cluster.md +++ b/artifacts/cluster.md @@ -25,7 +25,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https:// --- -[**P3X-REDIS-UI-SERVER**](https://corifeus.com/redis-ui-server) Build v2024.4.150 +[**P3X-REDIS-UI-SERVER**](https://corifeus.com/redis-ui-server) Build v2024.4.151 [![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) diff --git a/package.json b/package.json index 387e507..b558607 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "p3x-redis-ui-server", - "version": "2024.4.150", + "version": "2024.4.151", "description": "🏍️ The p3x-redis-ui-server package motor that is connected to the p3x-redis-ui-material web user interface", "corifeus": { "icon": "fas fa-flag-checkered", diff --git a/src/service/socket.io/request/key-get.js b/src/service/socket.io/request/key-get.js index 1e44f9f..6c6bc19 100644 --- a/src/service/socket.io/request/key-get.js +++ b/src/service/socket.io/request/key-get.js @@ -19,26 +19,32 @@ module.exports = async (options) => { switch (type) { case 'string': viewPipeline.get(key) + viewPipeline.getBuffer(key) break; case 'list': viewPipeline.lrange(key, 0, -1) + viewPipeline.lrangeBuffer(key, 0, -1) break; case 'hash': viewPipeline.hgetall(key) + viewPipeline.hgetallBuffer(key) break; case 'set': viewPipeline.smembers(key) + viewPipeline.smembersBuffer(key) break; case 'zset': viewPipeline.zrange(key, 0, -1, 'WITHSCORES') + viewPipeline.zrangeBuffer(key, 0, -1, 'WITHSCORES') break; case 'stream': viewPipeline.xrange(key, '-', '+') + viewPipeline.xrangeBuffer(key, '-', '+') break; } viewPipeline.ttl(key) @@ -71,12 +77,13 @@ module.exports = async (options) => { // console.log(viewPipelineResult) const value = viewPipelineResult[0][1] - const ttl = viewPipelineResult[1][1] - const encoding = viewPipelineResult[2][1] + const valueBuffer = viewPipelineResult[1][1] + const ttl = viewPipelineResult[2][1] + const encoding = viewPipelineResult[3][1] let length if (type !== 'string') { - length = viewPipelineResult[3][1] + length = viewPipelineResult[4][1] } const socketResult = { @@ -85,6 +92,7 @@ module.exports = async (options) => { status: 'ok', type: type, value: value, + valueBuffer: valueBuffer, ttl: ttl, encoding: encoding, };