Caching data in Windows application

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi, I like to cache data in Windows application similarly as we do in
ASP.Net using System.Web.HttpContext.Current­.Cache. any idea how is
do it? Thanks
 
I believe you can use System.Web.Caching.Cache in Winform applications. Just
unfortunate that they put it in the Web namespace. You will need to add a
reference to System.Web.

HTH
Dan
 
Not sure , if I understood the requirement correctly...I wonder why would
one need to cache some thing on a Windows Application. The reason we have
caching , session etc in asp.net is because web applications are
stateless....that means for a webapplication each user request from browser
is like a new request.. to over come that and implemet state in web app, we
have cache , session etc

Windows application resides in client machine(memory) and any variable /
object/ dataset in the code can be made available through out the scope of
application, just by giving a global scope to it...
 
Back
Top