M
M
mint_candy2019-05-28 16:55:30
API
mint_candy, 2019-05-28 16:55:30

How to update cached data in Redis?

Hello. I have a task ahead of me. I have never worked with Redis, but I know that it is possible to implement the functionality I need with it.
Task: You need to write a service that will request data from a third-party API. This data needs to be cached, and the cache lifetime should be set to 00:00 the next day. When a new day arrives, the data must be requested again from the API and cached again until 00:00 the next day, and so on. This process should be automated. Those. the system itself must update the cache when its lifetime expires.
And when the user accesses my service, I will have to give him data from the cache.
I decided to write a service in Node.js.
Thanks in advance for your help.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question