skip to Main Content

Failed to connect with redis in node.js

I am trying to connect with redis(of docker instance) using express(node.js). Here is my index.ts file in which i am trying to connect with redis import mongoose from 'mongoose' import express from 'express' import session from 'express-session' import connectRedis from…

VIEW QUESTION

redisinsights with persistent volume in kubernetes

I have the following .yaml file to install redisinsights in kubernetes, with persistence support. apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: redisinsight-storage-class provisioner: 'kubernetes.io/gce-pd' parameters: type: 'pd-standard' --- apiVersion: v1 kind: PersistentVolumeClaim metadata: name: redisinsight-volume-claim spec: storageClassName: redisinsight-storage-class accessModes: - ReadWriteOnce…

VIEW QUESTION

redis mock for testing in nestjs

I am writing test cases in my email-service.spec.ts file my email-service file @Injectable() export class EmailSubscriptionService { private nodeTokenCache; private result; constructor(@InjectRepository(ConsumerEmailSubscriptions) private readonly emailSubscriptions: Repository<ConsumerEmailSubscriptions>, @InjectRepository(EmailSubscriptions) private readonly emailSubscriptionLegacy: Repository<EmailSubscriptions>, @InjectRedisClient('0') private redisClient: Redis.Redis, private readonly config: ConfigService, private…

VIEW QUESTION

Why i get (nil) when read redis stream

In my stream I have 1 pending message: redis[7]> XREADGROUP GROUP symfony consumer COUNT 1 STREAMS messages 0 1) 1) "messages" 2) 1) 1) "1592850947048-0" 2) (nil) redis[7]> XPENDING messages symfony 1) (integer) 1 2) "1592850947048-0" 3) "1592850947048-0" 4) 1)…

VIEW QUESTION
Back To Top
Search