Where Cache stored in asp.net
I'm using the Cache object to store the Datatable. like as below
Cache["dt"]=dtsum;
If I store like this where cahce will store either at client side or serverside. Previoulsy I was storing in Viewstate. But I was thinking of Viewstate that store data in page itself. so I'm storing in Cache. which will be better option. please suggest m开发者_StackOverflowe.
Cache
is stored in web server memory.
You should understand the differences between Viewstate
, Cache
and Session
http://www.codeproject.com/KB/aspnet/PTCacheSessionViewState.aspx
Cache stores the data at Server Side.
Upto.NET Framework 3.5 SP1, you had only one option that is it by default used to store in memory (In Proc).. With .NET 4, You have an option to store your cache outside as well using CacheProviders...
精彩评论