---
title: "Comment by blessing Awodele on \"Setting Up Redis in Node.js Server\" | Hashnode"
description: "what if the data in the database get updated who will redis get the updated data or there has to be another middleware to compare data"
url: "https://hashnode.com/posts/setting-up-redis-in-nodejs-server/65f4f45d42fc475802961a8c/comment/65f7f2a0805c6b698026e59a"
---

[Discussion](https://hashnode.com/posts/setting-up-redis-in-nodejs-server/65f4f45d42fc475802961a8c)

Comment [Setting Up Redis in Node.js Server](https://hashnode.com/posts/setting-up-redis-in-nodejs-server/65f4f45d42fc475802961a8c)

[blessing Awodele](https://hashnode.com/@Atomicity)

[Mar 18, 2024](https://hashnode.com/posts/setting-up-redis-in-nodejs-server/65f4f45d42fc475802961a8c/comment/65f7f2a0805c6b698026e59a)

what if the data in the database get updated who will redis get the updated data or there has to be another middleware to compare data

[Shivang Yadav](https://hashnode.com/@shivang-16)

[Mar 18, 2024](https://hashnode.com/posts/setting-up-redis-in-nodejs-server/65f4f45d42fc475802961a8c/comment/65f7f2a0805c6b698026e59a#reply-65f7f950b25732e1f1c623fc)

we can set data expiry time in redis, also we can explicitly delete the data according to our need
