开发者

Where Cache stored in asp.net

开发者 https://www.devze.com 2023-03-29 11:34 出处:网络
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.

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...

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号