Skip to content

Commit

Permalink
r0b08x [chore] 3/23/2024, 5:12:48 PM
Browse files Browse the repository at this point in the history
  • Loading branch information
p3x-robot committed Mar 23, 2024
1 parent 57c9236 commit 5fe15a2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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



Expand Down Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion artifacts/cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
14 changes: 11 additions & 3 deletions src/service/socket.io/request/key-get.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 = {
Expand All @@ -85,6 +92,7 @@ module.exports = async (options) => {
status: 'ok',
type: type,
value: value,
valueBuffer: valueBuffer,
ttl: ttl,
encoding: encoding,
};
Expand Down

0 comments on commit 5fe15a2

Please sign in to comment.