Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.4k views
in Technique[技术] by (71.8m points)

两层缓存 redis + 本地缓存,更新/删除数据后其他节点的本地缓存如何删除?

image
本地的缓存只能通过过期自动删除或通过广播进行更新吗?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

可以广播更新的同时设置超时时间, 在多长时间内 本地缓存未接受到广播更新的通知(防止未接到导致数据不一致)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...