Questions tagged [node-redis]

node-redis is a complete Redis client for node.js. It supports all Redis commands, including many recently added commands like EVAL from experimental Redis server branches.

756 questions
0
votes
0 answers

Node & Redis: Cannot pull more than 46 records in a list

We have a problem that simply we cannot solve for weeks. We are using Node.js on Heroku, openredis for our Redis server, 'node-redis' for the Node Redis client. In our mobile app project, we have a redis list called 'user_list' where it contains the…
Ali
  • 5,338
  • 12
  • 55
  • 78
0
votes
1 answer

Cannot read property 'length' of undefined in node_redis hgetall function

I have the following code generating the error: leagueclient.hgetall userLeagueKey, getLeagueInfo I've verified that the key is correct, and getLeagueInfo executes correctly with the correct return value, but in between I get the Cannot read…
0
votes
2 answers

Does node.js Redis package updating clear the Redis database?

I've recently updated my node.js Redis package. Now my data seems to be gone. Does updating remove all my data?
Richard
  • 14,427
  • 9
  • 57
  • 85
0
votes
3 answers

"Archiving" publish/subscribe message in Redis

I am using Redis' publish/subscribe feature. So the server is publishing 10 items then the client gets those 10 items. Now however, a new client subscribes to the feed. I would like them to get the previous 10 items as well as any new items. Does…
Alexis
  • 23,545
  • 19
  • 104
  • 143
0
votes
1 answer

Implement findBy method at node_redis but , it doesn't work

all. I implement findBy("name","password") at node_redis module, following this. user.js // return user find by name and password. User.findBy = function(name,password){ console.log("calllelelelelll"); var res; …
nobinobiru
  • 792
  • 12
  • 28
0
votes
1 answer

Node.js redis "unknown command 'hset'"?

I'm new to redis, and I'm trying out various examples. However, it doesn't seem to work: root@localhost:~# node lol.js Reply: OK Error: Error: Error: ERR unknown command 'hset' Error: Error: Error: ERR unknown command…
user775171
0
votes
2 answers

redis hget returns null in code snippet but works in redis-cli

for (i=0 ; i < pri.state.totalConversations; i++) { redisclient.lindex("conversationsIDList",i, function(err,reply) { convID = reply; console.log("ConvID: " + "i: " + i + " "+ convID); }); …
user1447121
  • 2,861
  • 4
  • 22
  • 23
0
votes
2 answers

Can you use Lua scripting to make Redis throw events?

I'm trying to create an abstraction where I can listen to change events of a redis collection and have the key, value passed into a callback. I was wondering if it would be possible to do this with Lua scripting on the newer versions. Thanks!
fancy
  • 48,619
  • 62
  • 153
  • 231
-1
votes
1 answer

why REDIS SERVER clears memory as i push data?

As I am taking the learning curve in REDIS I developd a simple application that consumes market data of goverment bonds, and for each price, it routine ask a webservice for bonds analytics at that price. Analytics is provided by a api webservice…
-1
votes
1 answer

How to connect esp32 and esp8266 with redis database as client

i am trying to run redis server database on RPi3 M-B and want to connect esp12N (esp8266 based) and esp32 with the database as client. Also suggest me if any other database other than redis which is supported in both raspberry pi as well as esp32/…
Rahul Soni
  • 13
  • 2
-1
votes
2 answers

How to pass the value in `hgetall` out in node.js

I use redis, and here are my codes const redis = require("redis"), client = redis.createClient() let count1, count2, countall client.hgetall('onekey', function(err, object) { if (object) { count1 = object.onevalue console.log(count1) }…
yupang
  • 155
  • 1
  • 2
  • 16
-1
votes
1 answer

Redis sizing for Production

I have few queries regarding Redis Cluster setup: 1.Does redis support cross site replication ? When we start redis cluster,can we decide what will be the slave of each instance. 2.I need to store around 11 billion keys,with full persistance and…
-1
votes
1 answer

NodeJS and Queue Messaging service

In my node project, I need to have a process that read all the data from a queue and rebroadcast the data in real-time through websockets to all subscribed clients. I was wondering if it was possible to achieve something like that with Redis? I…
user3288840
  • 69
  • 2
  • 7
-1
votes
1 answer

Redis + Websockets: Send different channels

I have a node server running with Redis and SockJS. Redis gets messages over different channels. Is there a way to use these channels for websockets as well. First I found Primus (https://github.com/primus/primus) and was happy to have different…
messy
  • 915
  • 6
  • 26
-1
votes
1 answer

using redis in mongodb

I have a default Express app, and my routes index.js file looks like this: var user = require('../models/user'); exports.index = function(req, res){ res.render('index', { title: 'Express', object: obj }); }; Now, suppose in my app.js file the…
john smith
  • 541
  • 6
  • 24
1 2 3
50
51