Cache class

  • Thread starter Thread starter .
  • Start date Start date
?

.

Hello,

The Cache class is found in System.Web.Caching namespace. Does that mean it
can be used only in ASP.NET application? What about in a client/server
situation? Maybe I would like to cache data on the server app. Is there a
caching mechanism provided by the framework for that purpose? Or should I
just use the same Cache class from System.Web.Caching? I suppose this should
work, but I haven't tried it.

Thanks.
 
.. said:
Hello,

The Cache class is found in System.Web.Caching namespace. Does that mean it
can be used only in ASP.NET application? What about in a client/server
situation? Maybe I would like to cache data on the server app. Is there a
caching mechanism provided by the framework for that purpose? Or should I
just use the same Cache class from System.Web.Caching? I suppose this should
work, but I haven't tried it.

Thanks.
I dont see anything in this particular class that would prevent you from
using it. But, I have a feeling it might depend on "HttpContext" being
available for it to use. You might want to try using it. If that does
not work, you can probably implement a similar generic solution with a
Stack or ArrayList as base.
 
Back
Top