skip to Main Content

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", "content": "bru", "status": "delivered", "type": "chat", "messageID": "8188946b-67e4-4d86-a927-32842361825c" },........ ] I just want to select all the status sent and change status to delivered if (messageIDs.length === 0)…

VIEW QUESTION

How to modify maxmemory on Redis cloud

redis.exceptions.ResponseError: OOM command not allowed when used memory > 'maxmemory'. Im getting above error and I tried setting up through redis-cli, the maxmemory config is not available. It has only below attribute. CONFIG GET * "activerehashing" "yes" "list-max-ziplist-size" "-2" "list-compress-depth"…

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
Back To Top
Search