Skip to main content
Stack Overflow for Teams is now Stack Internal: See how we’re powering the human intelligence layer of enterprise AI. Read more >
Filter by
Sorted by
Tagged with
0 votes
2 answers
222 views

How to set number of reconnection attempts in `node-redis` library?

I'm tinkering my API on node.js with caching, supporting graceful degradation. While testing app with redis container being disabled, node-redis is trying to reconnect every five seconds. The problem ...
Stas's user avatar
  • 1
1 vote
0 answers
48 views

Expiry events with Redis cluster

`I want to activate Redis expiry events with Redis cluster having 3 nodes using spring-boot apllication Added all configurations CONFIG SET notify-keyspace-events Ex to verify CONFIG GET notify-...
Lucifer's user avatar
  • 11
0 votes
1 answer
95 views

Howcome Redis can't establish a redis connection?

I'm establishing my local environment with a pre-existing wordpress site that is hosted through pantheon. Lando is the local environment I'm using and the pre-existing .lando.yml file is using the ...
user28741721's user avatar
0 votes
1 answer
360 views

How to restrict AWS Serverless ElastiCache access by the default user

I am using AWS Serverless ElastiCache (Redis) with Password authentication. I have created a new user with a password and attached specific access permissions, but the default user (default) seems to ...
Deepak's user avatar
  • 321
0 votes
1 answer
69 views

redis ft.search searched across two different indexes

Here's how I created my indexes await redis.call('FT.CREATE', 'idx:business', 'SCHEMA', 'description', 'TEXT', 'location', 'GEO', 'SORTABLE', 'rating', 'NUMERIC', 'SORTABLE', 'sold', '...
imin's user avatar
  • 4,598
0 votes
1 answer
53 views

How do I persistently and asynchronously save Redis database in NodeJS?

How can I use BGSAVE redis function in NodeJS? import { createClient } from 'redis'; const client = await createClient() .on('error', err => console.log('Redis Client Error', err)) .connect(); ...
João Pimentel Ferreira's user avatar
0 votes
0 answers
251 views

Unable to find results in vector search when using Redis as a vector database

I'm trying to follow the Redis documentation example to calculate the distance between two embeddings arrays, but I'm using TypeScript. I've managed to create an index and load data, but no matter how ...
Jesus Diaz Rivero's user avatar
0 votes
1 answer
230 views

Get Redis keys that match a pattern in v4

I was using Redis version 3 in my Node.js app that published a message. To publish this message, I was able to fetch specific keys that matched a value. Now I have updated to version 4, and it looks ...
Manuel Duarte's user avatar
0 votes
1 answer
300 views

Has the pipeline function been removed from node-redis?

I remember using the pipeline function in node-redis to batch commands and execute them together. Is this function now deprecated? Has it been replaced with automatic pipelining within the client? ...
itsvinayak's user avatar
0 votes
2 answers
136 views

Is it possible to use JSONPath with "?()" syntax to filter objects (not array) in Redis?

I'm using node-redis library. I have redis key: test1 with value: { "requests": [ { "requestId": "123", "requestType": "...
Konrad's user avatar
  • 77
0 votes
1 answer
667 views

Repeating SocketClosedUnexpectedlyError on Node JS API

I'm constantly receiving this error in my Node JS API: Redis Client Error: SocketClosedUnexpectedlyError: Socket closed unexpectedly at TLSSocket.<anonymous> (.../node_modules/@redis/client/...
Vagelis Viskadouros's user avatar
1 vote
1 answer
143 views

How to read hash in redis using node.js using the HSCAN function?

I have a have set the hash using HSET function async (userObject) => { const { phone } = userObject; const key = keyGenerator.getUserAuthKey(phone); try { for (const [field,value] ...
18.5's user avatar
  • 31
0 votes
2 answers
425 views

Is it possible that fetching data from Redis cache sometimes takes longer than our previous response times due to memory constraints on my PC?

Is it possible that sometimes fetching redis cache data also takes more time than out last resposnses time due to memory in my PC?
MCA DDIT's user avatar
1 vote
1 answer
109 views

node-redis: How to query argmin on redis timeSeries?

In typescript using node-redis with timeSeries, I want to get an argmin on range but I can't find a way to do that. Bellow is a simple example with a timeSeries (6 points on timestamps 0, 1, 2, 3, 4, ...
Vince M's user avatar
  • 1,288
1 vote
1 answer
239 views

What is the type of createClient() in node-redis

I am passing await createClient() to a class in typescript: import { createClient } from "redis"; const redisClient = await createClient({ url: "redis://default:1234@redis:6379" }) ...
forbidden's user avatar
0 votes
1 answer
48 views

How to stored last ~1500 events in Sorted Set in Redis

I am store ~1500 last events in Redis in soreted set. When set is more than 1500 elements, which is better (least loaded) way to clear first events? Im using redis:6.0.2 Several options come to mind: ...
Dm Prkp's user avatar
  • 110
0 votes
1 answer
269 views

How to use nocontent flag with ft.search to retrieve only keys

I have a requirement to search through redis cache using full text search but the response I get has key and value which is a lot of data. I just need key string to clean up those cache entries later....
yayatip's user avatar
  • 79
0 votes
2 answers
1k views

Issue connecting Bull Queue to redis through docker containers

i have seen this question asked around a couple times, but never found a proper answer that works for me, so i will give it a go. I have sat up a worker service in its own docker container which uses ...
catfish's user avatar
  • 55
0 votes
2 answers
721 views

Bull Board UI stuck on "Loading"

In localhost the im using /admin route, and it displays the Bull board. But On Production Environment ( which is hosted on AWS ) , It is stuck on Loading... phase Please Give me info what Im doing ...
Crazy Volt's user avatar
1 vote
1 answer
477 views

redis : net.connect is not a Function

I need to add Redis to nodejs But it cannot be executed smoothly Using the redis version, same code, but getting this error: my code: import { createClient } from 'redis' export const client = ...
Chucky Tasi's user avatar
2 votes
1 answer
2k views

How do I configure my Redis client to use read replicas with cluster mode disabled?

I am using node-redis and AWS Elasticache with cluster mode disabled. I have 1 primary node and two replica nodes. My replica nodes are not serving reads at all. This can be seen in the metrics tab of ...
Jake Chambers's user avatar
0 votes
2 answers
1k views

Why is client.isReady returning undefined in my redis client connection

I have the following RedisClient class that connects to a redis server: import { promisify } from 'util'; import { createClient } from 'redis'; class RedisClient { constructor() { this.client = ...
Leuel Asfaw's user avatar
0 votes
1 answer
538 views

FT.SEARCH not working with cluster based Redis server configuration

Redis Version: 7.2.1 Installed Modules: RediSearch v.2.4.15, RedisJSON v.99.99.99 Number of nodes: xx.x.x.xxx:6379, xx.x.x.xxx:6380, xx.x.x.xxx:6381, xx.x.x.xxx:6382, xx.x.x.xxx:6383, xx.x.x.xxx:6384 ...
Prakash Rathod's user avatar
0 votes
1 answer
33 views

How do I enable database level authentication in redis deployment

I am using redis cluster deployment in the Kubernetes. I would like to enable authentication for database level (I assume redis supports multiple databases with in the cluster.)
Ashok Kumar's user avatar
0 votes
1 answer
1k views

AWS Elasticache - Node Redis with IAM authentication token

I'm trying to use the AWS Elasticache with node redis client and I'm able to generate an IAM token and use it as a password. During the token creation I need to pass the expiration time for the token ...
user avatar
2 votes
1 answer
2k views

BullMq - Facing errors where Jobs are being processed twice which is leading to errors such as Missing key/lock

Provided are the details including code that I am using to implement jobs with Nodejs Some things to keep in mind, as GCP runs multiple instance, they all have access to this one worker and the same ...
pk_45's user avatar
  • 23
4 votes
2 answers
1k views

Mock ioRedis for connection failure

I'm using ioredis npm library in my production code : file: redisManager.ts import Redis from 'ioredis'; export interface RedisConnection { client: Redis | null; } let redisConnection: ...
Ida Amit's user avatar
  • 1,717
0 votes
1 answer
898 views

Redis Pub/Sub listener is not a function

I have a redisClient and configured a separate publisher and subscriber with duplicate although I am not sure I need both of them. Redis server works ok and redisClient can write/read from the server ...
arisalexis's user avatar
  • 2,262
0 votes
1 answer
392 views

Node Redis cached data seems to randomly disappear

I'm using Redis to store data from an API with a TTL of a 7 days. Here's some psuedo of what I'm doing to set the data. First I check if the data is in Redis. for(let i=0; i< requestedData.length; ...
Sheldon's user avatar
  • 215
2 votes
1 answer
2k views

Experiencing high latency in GCP Redis memory store

while getting the data from Redis in the cloud run. I notice a high latency in it. it takes around 4 mins to get the data from Redis. how many concurrent calls can GCP Redis handle? do I need to ...
Habaek's user avatar
  • 41
1 vote
1 answer
248 views

Redis Nested Object Search

{ "name": "Noise-cancelling Bluetooth headphones", "description": "Wireless Bluetooth headphones with noise-cancelling technology", "connection":...
meursault's user avatar
  • 295
0 votes
1 answer
459 views

node-redis: How does executeIsolated impact watched keys?

I'm trying to debug some WatchErrors in my project and am noticing that we aren't using an isolatedClient and am wondering if that is the cause. I don't see any logs (or code paths) that would ...
Jed's user avatar
  • 512
0 votes
1 answer
118 views

Connect to AWS ES2 redis instance from another instance

Two instance located in the same VPC and subnet port in redis instance security group: in /etc/redis/redis.conf bind 0.0.0.0 but when import { createClient } from 'redis'; const host = 'ec2-...
user1353327's user avatar
0 votes
1 answer
665 views

zrevrange is not working in redis 4.0.10 server

I have upgraded the Redis version to the latest version`4.6.7` in node.js application and the Redis server version is 4.0.10 zrevrange is deprecated in the latest Node-Redis version. I used zRange ...
Habaek's user avatar
  • 41
0 votes
2 answers
480 views

REDIS HSET setting EXpiration time correctly

redis-cli INFO SERVER # Server redis_version:7.0.5 ... So in node caching some user data the problem having is that the 'EX' instead of setting as the expiration time in seconds is puting ...
H.C's user avatar
  • 618
0 votes
1 answer
1k views

Error: connect ECONNREFUSED 127.0.0.1:6379 when connecting to Redis container, although different port specified in configuration

There's a server on which two dockerized application instances run. One of them has Redis running on default port 6379, the other one, described below, runs Redis on port 7379. When I try to start a ...
AbreQueVoy's user avatar
  • 2,368
0 votes
1 answer
699 views

Redis: FT.SEARCH fuzzy matching sorting by distance to a provided coordinates

i have restaurants collection in my redis DB, the restaurant object stored in as bellow: { uid: "T8957Ixo1kRjtw3Nof3Ttase", name: "Restaurant name", address: "751 S ...
Yousif Basim's user avatar
1 vote
0 answers
443 views

Trying to deploy my application on render.com, trying connecting to db via internal url, connection is getting refused, app trying a local connection

I'm trying deploying my application wherein im using workers and ques for jobs, trying to connect the redis instance to my application , connection is getting refused. I thik app still trying to hit a ...
Himanshu Nain's user avatar
1 vote
1 answer
2k views

Using json vs string values in Redis

I'm evaluating redis to understand between json vs string what provides better retrieval performance. As POC I set below json in redis as both json and string values and noticed that the size of JSON ...
Kumar Thoma's user avatar
0 votes
1 answer
705 views

Issue: Redis JSON CLI SET command to update a variable in object

[ { "senderID": "64d9c926c17fd183a93d5e35", "receiverID": "64d9c92dc17fd183a93d5e39", "timestamp": "2023-08-14T07:39:45.946Z", "content&...
Bruce Armstrong's user avatar
1 vote
1 answer
1k views

Search across multiple JSON documents using Redis Search

I've been researching this problem for some time now and I can't find a good practical example of how this is implemented. Is this possible? and how would it be done practically and correctly, if it ...
rubixibuc's user avatar
  • 7,484
0 votes
2 answers
1k views

RedisJSON - Manipulating the JSON array of objects (Using Node Redis client)

This is the data [ { "senderID": "64d9c926c17fd183a93d5e35", "receiverID": "64d9c92dc17fd183a93d5e39", "timestamp": "2023-08-14T07:39:45.946Z&...
Bruce Armstrong's user avatar
0 votes
1 answer
174 views

Node Redis Pub/Sub between parent and child process

I am trying to implement Pub/Sub between a parent process and a child process in Node.JS. I am using node-redis version 4.6.7 and redis server version 6.2.12. I have built a Connection object that has ...
violetflare's user avatar
1 vote
1 answer
2k views

problem in using rpush() and lrange() function of redis in node js

i am using rpush method to store the list in the redis and lrange to get the list elements from the redis. In node js i am getting error that rpush and lrange is not function. So, I use RPUSH AND ...
Ahsan Ali's user avatar
0 votes
1 answer
215 views

Why is Redis not responding?

I'm trying to run Redis in my node backend. The code runs fine until it gets to any Redis command, at which point it just stops. No error message or anything e.g. const client = redis.createClient() ...
firefly1095's user avatar
0 votes
0 answers
655 views

Redis socket closed unexpectedly nodejs

I am frequently getting warning "Redis socket closed unexpectedly" inside Node.js Code Sample redis-config.js const config = require('./config'); const redis = require('redis'); const cache =...
Sudhir's user avatar
  • 833
1 vote
2 answers
335 views

Trying to connect to Redis client running on WSL with Node

I am using the node redis package to connect to a redis client running on WSL because I use windows. This is my connection code: const redis = require("redis"); const redisClient = redis....
Jia Huang's user avatar
0 votes
1 answer
73 views

what is the right syntax for node-redis PUBSUB CHANNELS

what is the right syntax for node-redis PUBSUB CHANNELS await redis.sendCommand(('PUBSUB CHANNELS', []), function(err,result){ console.log(err); console.log(result); }); I try like this ...
Hulk's user avatar
  • 1
1 vote
0 answers
225 views

Error in express app when using Connect-redis to store session data "Type Error Client.get is not a function"

I'm quite new to using express. I'm using express, react, and mongodb to create a full stack app. When storing the sessionID on the Express server, I'm using a redis store with the "redis" ...
bigbossbhris's user avatar
0 votes
1 answer
267 views

Does Redis-om for Node.js support Aggregation search?

I just wanted to try aggregation search in node.js application. But I don't know how to do that and also not finding any solution in the related docs. Just send a code snippet so that I can implement ...
Harshit Chandani's user avatar

1
2 3 4 5
16