node-redis Questions

2

I have a Node application that uses Express and node_redis. I'm following the approach outlined in the Learning Node book and creating a single client for the life of the application. Given this ap...
Elsi asked 13/3, 2014 at 18:4

5

Solved

How can I find the count of all the keys that has a matching pattern. For example, there are two keys abc:random-text-1 and abc:random-text-2 . The common pattern here isabc: . So, here the count ...
Ecthyma asked 6/12, 2013 at 7:35

1

I want my application (lets say a simple node file for now) to work as it is even if redis is not available. I'm not able to do it the correct way. This is what I've tried. var redis = require('re...
Abigael asked 6/3, 2015 at 2:36

4

I have arrays of keys like ["aaa","bbb","ccc"] so I want to delete all these keys from redis using one command . I donot want to iterate using loop . I read about redis command DEL and on terminal ...
Gules asked 29/9, 2015 at 11:27

1

Solved

I want to use redis to store some of my own key-value pairs, however some of my modules already use it. The redis express session store for session data, as well as the redis adapter for socket io....
Bamby asked 28/8, 2016 at 14:47

4

Solved

Tearing my hair out with this one... has anyone managed to scale Socket.IO to multiple "worker" processes spawned by Node.js's cluster module? Lets say I have the following on four worker processe...
Uranometry asked 19/8, 2013 at 9:35

1

Solved

Is there any way to check weather redis is available or terminated due to some issues before I am setting or getting a key ? How can I achieve that? I am using ioredis module.
Carrie asked 25/1, 2016 at 9:50

1

Solved

I have a Node/Express routing function which executes a Redis call in another module. I want to perform a complex Redis function in one node module and send a simple callback saying it is a success...
Deering asked 20/1, 2016 at 13:59

0

Unable to connect to Redis from NodeJS with following error: Redis connection to redis.example.com failed - write EPIPE Using NodeJS version v0.10.35 node_redis module 0.12.1 & Redis DB versio...
Dike asked 4/12, 2015 at 14:15

2

I am new to Redis and Node.JS and have been attempting to use the two together. However I am a little confused by which functions I can use one after the other. The following code appears to run s...
Illsuited asked 17/10, 2015 at 12:9

1

Solved

I'm working on a web app that receives data from an API provider. Now I need a way to cache the data to save from calling the provider again for the same data. Then I stumbled on Redis which seems...
Expletive asked 15/10, 2015 at 21:13

3

I'm building an API in Node and looking to store the API key/access token in Redis. How best can I generate a unique API key/access token to store in Redis as the key and an email address as the v...
Leopold asked 14/12, 2014 at 6:59

1

I am storing the socket.id of each user when he login using redis redisClient.set(user._id + ':socket', socket.id) When any post for this user._id is created, i am trying emit an event to the so...
Constituency asked 16/3, 2015 at 4:29

1

I currently have a chat application(one to one) in node.js and socket.io. as the users in my website are increasing, i want to introduce redis in my chat app. Here is a small example of my current...
Mal asked 25/8, 2014 at 9:59

1

Solved

I have created a redis client module named redisConnection.js. It's contents are as follows var redis = require('redis').createClient(); exports.exposeConnection = function(){ return redis; };...
Clostridium asked 11/10, 2013 at 6:51

1

I have a set of hierarchical data to store, the hierarchy is like site/building/floor, the data, for example { site:'New York', buildings: [ { name:'building a', floors: [ 'Ground':[{room:r...
Lakenyalaker asked 3/3, 2014 at 15:8

1

Solved

I'm writing a script in node.js, using scripto, and I'm trying to do a nil check to a value from the database: here is the js code (for node)- var redis = require("redis"); var redisClient = redis...
Unspent asked 26/1, 2014 at 13:56

3

Solved

Given a simple example: var express = require("express") var redis = require('redis') var app = express() var client = redis.createClient() app.get('/', function(req, res) { req.connection.setT...
Project asked 30/4, 2013 at 8:14

2

Solved

So I am trying to get Sessions to work inside my socket.on('connection', ...) I am trying to get this working using recent versions: Socket.io - 0.9.13, Express - 3.1.0 and latest versions of other...
Pastorale asked 2/3, 2013 at 0:58

1

Is there any way to do an atomic set only if not already set in Redis? Specifically, I'm creating a user like "myapp:user:user_email" and want Redis to give me back an error if "user_email" is alr...
Seventh asked 23/4, 2013 at 0:47

© 2022 - 2024 — McMap. All rights reserved.