node-redis Questions
2
Solved
i am using jest and trying to mock node-redis using redis-mock.
// redis.js
const redis = require("redis");
const client = redis.createClient({ host: '127.0.0.1', port: 6379 });
// redi...
Puncheon asked 5/3, 2020 at 9:6
7
Solved
Does anybody know how can I get members with scores by node redis?
I tried something like this:
client.ZRANGE(key, 0, -1, withscores, function(err, replies) {
});
Thanks.
Moorings asked 11/6, 2014 at 8:2
2
Solved
How to remove element from list in Redis by value?
For exmaple, I have:
127.0.0.1:6379> lrange POST:544 0 -1
1) "1"
2) "2"
3) "36"
127.0.0.1:6379>
I know only value 36, not index. Can I ...
Guaranty asked 31/5, 2015 at 21:45
2
I started learning redis and nodejs ,
I am getting data from third party api call. I want to save this data into my redis server. I am able to do that
but I got a problem that if i get data
in js...
Kilbride asked 28/12, 2018 at 20:24
4
Solved
I have lot's of data to insert (SET \ INCR) to redis DB, so I'm looking for pipeline \ mass insertion through node.js.
I couldn't find any good example/ API for doing so in node.js, so any help wo...
Accouterment asked 28/1, 2014 at 20:49
3
Solved
I'm using kue which uses node_redis, but I'm also already using node_redis for my sessions, so I'd like to have kue create a server on a specific port say the default 6379 and then kue listen on po...
Jablon asked 6/7, 2014 at 21:39
1
Solved
How can I subscribe a redis channel inside a React Component when it is mounted (i.e, inside the componentDidMount() ) ?
In the internet almost everywhere I see the redis implementation with nodej...
Kennie asked 19/2, 2020 at 13:19
2
Solved
I want to run multiple instance of Redis on Centos 7.
Can anyone point me to proper link or post steps here.
I googled for the information but I didn't find any relevant information.
Ashok asked 6/9, 2016 at 15:38
2
Solved
How to get index of latest element in List Redis?
For example in List is stored id's of messages, I need get last ID message and return index this element.
Lagan asked 5/1, 2015 at 20:58
1
I have plenty of Sentinel and Cluster servers running 3.0.7 and need to upgrade to 5. I cannot afford downtime. Can someone please advice me how to do it?
Some DBs are so big that the servers canno...
Swor asked 26/11, 2018 at 19:33
2
I'm setting up a simple 1 Master - N Slaves Redis cluster (low write round, high read count). How to set this up is well documented on the Redis website, however, there is no information (or I miss...
Lamella asked 24/10, 2016 at 14:25
2
Today, I integrated Redis into my node.js application and am using it as a session store. Basically, upon successful authentication, I store the corresponding user object in Redis.
When I receive ...
Guillotine asked 3/1, 2014 at 1:33
1
Solved
I'm trying to make this package work.
redis version: stable 4.0.6
I connect Redis like this, there's no issues there.
pubsub.js
var redis = require("redis");
var psRedis = redis.createClient();...
Cassock asked 12/1, 2018 at 23:39
1
I'm developing a nodeJS server that uses redis as a database and I need to retrieve all the redis keys that have a certain service_id value. For example, if service id is 4, I need to retrieve all ...
Cracked asked 24/8, 2018 at 9:38
1
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 ser...
Monocycle asked 12/11, 2017 at 20:10
2
Solved
I want to be able to delete all the keys. Is there a way to flush all in node redis?
Redis client:
client = redis.createClient(REDIS_PORT, REDIS_HOST);
Engracia asked 16/6, 2016 at 18:16
1
This has been asked before at
Can I connect directly to a Redis server from JavaScript running in a browser?
(notice my comment)
and
Connecting directly to Redis with (client side) javascript?
b...
Widescreen asked 20/10, 2015 at 15:53
1
Solved
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 officia...
Integrated asked 6/6, 2018 at 8:52
1
Solved
I implemented basic caching functionality for a project and ran into a problem during the testing.
I test using jest and redis-mock and all the tests pass.
The problem is when I import a file which...
Zackzackariah asked 17/5, 2018 at 9:2
2
Solved
i just started implementing redis with node. during an implementation of authentication method i need to check whether the token exist in redis, if not update the new token in redis and in my mongo...
Ceil asked 11/12, 2012 at 9:27
2
My goal is to build a simple news feed in node.js with the help of mongodb and redis. It similar like twitter
So the scenario is pretty straight forward, once User A follow User B. Later on User's...
Donne asked 9/10, 2016 at 5:22
2
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...
Olag asked 11/2, 2016 at 17:14
2
Solved
In my node.js script I have an array of strings, and I want to LPUSH these strings into a Redis queue. I tried:
var redis = require('redis').createClient();
redis.lpush('queue', ['1', '2', '3'])
...
Sobranje asked 7/8, 2013 at 4:24
3
I'm using laravel and redis for real time chat. I can fire event from my laravel and receiving that data to client side.
My problem is how can i send something from client and then receive it to ...
Gadget asked 2/10, 2017 at 14:16
1
Solved
I have 2 Redis servers one master and the other slave(replication). Once the Master is down due to some reasons the slave will become Master and it continues to act as Master till something wrong h...
Amboise asked 31/8, 2017 at 6:0
© 2022 - 2024 — McMap. All rights reserved.