简体   繁体   中英

What is the best way for cahcing an irregular changing data - table in MVC 4?

I am a web developer on MVC 4 and want to use the cache concept to improve the speed of my home page. My website is a portal for sports and I have a slider in my home page which show the online result of matches. The match results data may change every 5 minutes, 10 minutes or 1 hour! Thus it seems to be better if I can cache the result according to table changes not by a fixed TimeDuration of OutputCache.

What is the best way to cache this result?

Thanks

带有Entity Framework 5.0的本文SqlDependency简要说明了如何在带有SQL Notification的MVC中进行缓存。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM