Below command only gives channel list .  127.0.0.1:6379> PUBSUB CHANNELS 1) "mychannel" 2) "mychanne2"   How to LIST subscribers subscribed on channel1 OR channel2 .?  also   i din't found redis command to list all subscribers...
I am using the library node_redis as the client for a micro-service message client that I am writing. Clients get messages from their application in their outbox that they need to send to other services. Everything is working great but I am trying to...
I am using Redis in Node.js and when deployed on live server it started to crash with below error message:  The no of requests are more per second.  at Object.replyToObject [as reply_to_object] (/home/ubuntu/webservices/node_modules/redis/lib/utils.j...
I want to have an array in Redis (using Node) where I can add values to it and specify how long I want it to stay in there. After that time limit, they should be deleted, and ideally be able to call something so I know what just left. ex. I may get a...
forgive me the question. I'm not used to node and sync / await  I have the following function which queries a mongodb returning a json, I'm saving that return on redis. So far so good.  findLightnings: async (request, h) => {     const q =...
I'm going crazy with a problem which I can not find solution. I can not return out values from a redis query. I am using node_redis client (http://redis.js.org/) as redis driver for Node.JS.  The problem is: I wrote a function for get the user st...
I have a simple node script that's going to copy non-exist document from redis to elasticsearch. However, my script failed because of memory. I realised that Node.js has a limitation of 1G of memory. I have about 1.7G of documents in redis (Accor...
I have a problem where EXEC's callback randomly returns some values as nulls.  The code works fine most of the times, but it fails randomly (or if I refresh the browser repeatedly)...  Here's the code reduced to the point where it's faili...
Background  I have an atomic operation and I need to use a lock to prevent other clients from reading an unstable value.    Platform:  Node 10.1.0 Library: redis   Solution  According to the official documentation, the solution for this is to use WAT...
I have a JavaScript / Node based project.  Within the server.js file (which starts the Node http server), I have a const based variable defined called redisClient.  I have another directory called controllers, with about 5 controller files (all *.js...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.