How to maintain versioning in redis cache ?
eg. at some point we saved an object in db and correspondingly in Redis.
And in next update or deployment for production there is some change in entity let’s say addition or deletion in field . How to handle this scenario ?
I have one answer for that is
“We usually clear cache on each new deployment .”
Looking for more answers?
Devansh Sharma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.