简体   繁体   中英

.Net 4.0 Caching Data in SqlServer Database Rather In memory Caching

I know that Microsoft has given System.Runtime.Caching name space in .net 4.0 framework. This helps us very good in terms of In Memory Caching data ( by using MemoryCache class). But Like enterprise library, it supports the Data Base Caching as well. I need to know that how to do my data caching (just to put and pic data) in sqlserver db, using the new feature introduced by microsoft. I have gone through, but could not find any article which gives any example through code. Please if any one know let me know.

More over if some body can suggest a db model for this in example.

Its more a question of where you need this data and how often you'd have to go to an "expensive" resource to get it.

For instance if you have data from a 3rd party site, you could 'cache' that data within your own database, giving you much faster access to it.

If you have data from your own database, that is "expensive" to produce or process, you could also cache that data in memory on your web tier.

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