1

I want to use Redis Cache. I want to store some data but it needs to be refreshed automatically at regular intervals.

If I have 100 rows and if any row has been updated in Cosmos DB, the row should get updated.

I want to know how to smoothly achieve this. Do I need to update the cache manually?

1
  • 2
    Might be duplicate with this question Commented Mar 19, 2018 at 10:11

1 Answer 1

2

I want to know how to smoothly achieve this. Do I need to update the cache manually?

Redis has no idea if the data has been updated in somewhere else. Yes, you need to do it manually.

Your client/application which is updating the main-DB should also invalidate/update Redis cache(key corresponding to updated data) accordingly.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.