We have few node.js processes that should be able to pass messages,  What's the most efficient way doing that? How about using node_redis pub/sub  EDIT: the processes might run on different machines...
I'm looking at this code snippet:  var addSnippet = function( req, res ) {   getPostParams( req, function( obj ) {       var r = redis.createClient();        r.stream.on( 'connect', function() {         r.incr( 'nextid' , function...
I'm slowly digging in and learning redis in my spare time, and I am interested in the options available for creating a 'listener' for a website that subscribes to a channel, and updates a webpage as messages are received.   Now, from my o...
I have been using node and redis for some time. The problem I am experiencing is, when I use hgetall in redis, it returns an object.   { uid: '6203453597',     first_name: 'Name',     last_name: 'Surname',     gender: 'mal...
I was following Stephen Grinder tutorial where he started using Promisify.   For that he gave very vague explanation saying that redis needs a callback function and he finds that very untidy + redis does not support promises in NodeJS   And afterward...
I am working with node.js and using redis for caching some of the data on the server.  My code:  var client = redis.createClient(); client.on("error", function (err) {     console.log("Error " + err); });  client.flushall();  function...
For example,  function user(){     flow.exec(         function(){             call a;          },         function(){             call b;         }     ); }  function posts(){     flow.exec(         function(){             call a;          },...
Is there a way to directly connect to Redis using client side (not Node.js) javascript?  I'm already using Node.js + PHP + Redis + Socket.io (for the client) successfully for a few projects. However, I really think this could be further simplifie...
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 try to get an information from a redis db and return it as the body of the response to the user. First, here is a code that fails :  var redis = require("redis"),     koa = require("koa");  var app = koa(),     port = process.argv[2...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.