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

Queue-like data structure in Redis

I need to save my data in queue-like data structure in Redis DB. How can I achieve this. Please help. My data looks like KEY | {TIMESTAMP1 - LOCATION1, TIMESTAMP2 - LOCATION2, .... }
user1234
  • 335
  • 2
  • 19
0
votes
1 answer

redis accumulate & publish a set of operations

Is it possible to instruct Redis to accumulate a set of operations and then issue a "publish all" command to publish the entire set of operations ( in linear order ) ? So you'd somehow set a marker ( startpublish ? ) and a cache would accumulate…
BaltoStar
  • 8,165
  • 17
  • 59
  • 91
0
votes
0 answers

Downloading remote file using nodejs

Here is my problem... I have a node server that multiple node terminals(raspberry pi) connect to. These node terminals run a series of jobs and some of them generate files. The files are not saved in the terminal but in a mysql blob. Now these…
LouieV
  • 1,032
  • 2
  • 15
  • 28
0
votes
1 answer

take multiple array fields as parameter

I am trying to refactor some code. All along the code base, I have code that stores user-related informations like this : this.users[user][field] = data ; Note that there could be an arbitrary number of subfields (including none), like this:…
nha
  • 17,623
  • 13
  • 87
  • 133
0
votes
1 answer

RedisStore - on error callback

I'm using connect-redis - https://github.com/visionmedia/connect-redis in my project. Is there any on error event? Something, where I can put callback to tell me, that (for example) my app can't connect to redis server? I tried to search but I have…
Jan Jůna
  • 4,965
  • 3
  • 21
  • 27
0
votes
1 answer

Are Nested Redis statments possible in Node.js?

I've got the following code that contains a nested redis statement var objList =new Array(); //Hardcoded key client.LRANGE("user4feed","0","-1",function(err,user){ user.forEach(function (reply, i) { …
p0ny
  • 329
  • 1
  • 3
  • 11
0
votes
1 answer

optimizing querying multi keys in redis via node

I have the certain key maintained in redis in the following…
swapnilsarwe
  • 1,290
  • 1
  • 8
  • 13
0
votes
1 answer

Ensuring two redis commands are atomic if the second comman

Using the node_redis client, how can I make two commands execute such that they will be performed atomically when the second command relies on the result of the first. Here is an example of what I am thinking. client.multi([ ["hget", orgId,…
Eric Rini
  • 1,830
  • 15
  • 20
0
votes
1 answer

understanding "dispatch" channel in redis-store pub-sub

I am using node.js, redis store for socket.io. While doing PUB-SUB I could see channel = dispatch Hence need to understand this dispath channel, how it is connected to my node process and how PUB SUB is working internally. Already gone through the…
Pranav
  • 2,054
  • 4
  • 27
  • 34
0
votes
0 answers

Seeking Guidance on troubleshooting node memory issue

I'm trying to implement a message queue using node, socket.io, and redis. I am attempting to follow the reliable queue pattern outlined Here. I am trying to read a logfile (60M in size) in line-by-line (will be changing this later) and pump the…
janarde
  • 115
  • 9
0
votes
1 answer

NodeJS + redis gives weird results

Maybe the results ain't weird, but I started using Node 1-2 months ago so for me they are... I have a loop which sorts out every other value of the array returned by hgetall (Redis command) and in that loop I call a function to get all values from…
user3054852
  • 179
  • 1
  • 11
0
votes
1 answer

How delete data from redis after getting client via soket.io?

Now i pushing data to channel redis everytime, when reload web page and this data is put to stack redis and is displayed here again and again: $rediska->publish('real', 'PHP SENDING'); this is called every reload page redisClient.on('pmessage',…
user2565968
0
votes
1 answer

Get empty Array in first loading page

When I call below function and show data at view of my ejs. There is no data at the first time of loading after the server start. But can get datas from second times of loading. That just only empty list on first time of loading after the server…
Thant Shwe Aung
  • 656
  • 7
  • 13
0
votes
0 answers

Redis - server displaying nothing after long inactivity

I'm using Redis Store with node js on Ubuntu server. After long inactivity with the nodejs and Redis, when I try to access node application Redis server returns empty data. It returns the data only after I restart Redis server. I've also checked…
Venugopal
  • 1
  • 2
0
votes
1 answer

option for lexicographical order in zrange?

When i add a score for a key using zincrby, it increases the score and puts the element in lexicographical order. Can i get this list in the order, in which the elements are updated or added ? e.g> If I execute zincrby A 100 g zincrby A 100…
Pranav
  • 2,054
  • 4
  • 27
  • 34