简体   繁体   中英

ASP.NET Caching suggestion

I have an ASP.NET website for which I want to implement ASP.NET caching. There is a master list of items that only master users can see when they login. All other users only see a subset of the master list.

I want to cache the master list using SqlCacheDependency but I don't think I can because SqlCacheDependency works with queries that involve tables from single database only. Unfortunately, my master list is stored in several databases and it does get updated now and then.

What is the best way in my situation to cache the master list but still keep it up to date?

Any help is greatly appreciated. Thanks.

Could you use the .net cache to store your objects?

http://msdn.microsoft.com/en-us/library/system.web.caching.cache.aspx

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