skip to Main Content

Redis The client is closed

Am trying to learn redis, am fetching github repo data, and then i want to cache it with redis. but i'm getting error why trying to use redis: redis-and-fetch/node_modules/@redis/client/dist/lib/client/index.js:409 return Promise.reject(new errors_1.ClientClosedError()); ClientClosedError: The client is closed this is my…

VIEW QUESTION

throw new TypeError('Invalid argument type'); from{mypath}Desktopredditnode_modules@redisclientdistlibclientRESP2encoder.js:17 t

I am following ben's typescript GraphQL Redis tutorial I am new to typescript and first time trying redis when I add the property req.session.userId= user.id; TypeError: Invalid argument type at encodeCommand (C:Usersvikash patelDesktopredditnode_modules@redisclientdistlibclientRESP2encoder.js:17:19 my main.ts code declare module "express-session" {…

VIEW QUESTION

how to configure nest/Bull redis connection

I am using BullModule in nest.js. when I connect to a local redis it works: const REDIS = { host: 'localhost', }; @Module({ imports: [ TaskTypesModule, TasksModule, ScheduleModule.forRoot(), BullModule.forRoot({ // @ts-ignore redis: REDIS, }), ], controllers: [AppController], providers: [AppService, PrismaService],…

VIEW QUESTION
Back To Top
Search