skip to Main Content

Redis – Set Expiry time of hsetnx

How to Set expiry time of hsetnx (https://redis.io/commands/hsetnx/) to be 1 hour. Currently i don't see a param where i can set expiry time to it. const IoRedis = require("ioredis"); const redis = new IoRedis(); var message = { "jobdid":…

VIEW QUESTION

Redis – TypeError: args.flat is not a function

Listening on port 3000 /backend/node_modules/ioredis/built/Command.js:43 this.args = args.flat(); ^ TypeError: args.flat is not a function at new Command (/Users/apple/Desktop/bbs-backend/node_modules/ioredis/built/Command.js:43:26) at EventEmitter.info (/Users/apple/Desktop/bbs-backend/node_modules/ioredis/built/utils/Commander.js:92:13) at EventEmitter._readyCheck (/Users/apple/Desktop/bbs-backend/node_modules/ioredis/built/Redis.js:623:14) at Socket.<anonymous> (/Users/apple/Desktop/bbs-backend/node_modules/ioredis/built/redis/event_handler.js:58:18) at Object.onceWrapper (events.js:273:13) at Socket.emit (events.js:187:15) at Socket.EventEmitter.emit (domain.js:442:20) at TCPConnectWrap.afterConnect [as…

VIEW QUESTION

Cannot connect to Redis in Docker

I try to connect to Redis from my backend, but I keep getting the following error: ... api-1 | [ioredis] Unhandled error event: Error: getaddrinfo ENOTFOUND undefined api-1 | at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26) api-1 | [ioredis] Unhandled error event:…

VIEW QUESTION
Back To Top
Search