Azure Redis缓存更新为数据库更新 [英] Azure redis cache update as database updates

查看:110
本文介绍了Azure Redis缓存更新为数据库更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要实现Azure Redis缓存以缓存某些数据.此缓存需要在数据库更新时进行更新,以便用户始终从缓存中获取更新的数据.

I need to implement Azure redis cache to cache some of the data. This cache needs to be updated as the database updates so that the users always gets the updated data even from the cache. How this can be acheived?

推荐答案

您应该使用缓存模式来实现此目的,如此处所述:

You should use a cache-aside pattern to achieve this as documented here:

https://docs.microsoft.com/en-us/azure/architecture /patterns/cache-aside


这篇关于Azure Redis缓存更新为数据库更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆