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...
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 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...
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...
I'm writing a "fastest finger first" Node.JS app using smartphones as buzzers. I intend to use Socket.IO to handle the answers coming into the app but don't know what is the best way to store the data for comparison at the end of the...
I'm new to this redis, so please help me! I'm storing has values in redis by using this command,   client.hmset('top_trend', array[0], 0); client.expire('top_trend', 86400, redis.print);   and i'will increment the value &#...
Following the udemy course of Node JS: Advanced Concepts by @Stephen Grider.  There is a part using Redis inside the native method query.exec of Mongoose using prototype:  const mongoose = require('mongoose'); const exec = mongoose.Query.prot...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.