Thomaz,
The ASP.NET cache is a service that is provided for ASP.NET. It doesn't
make sense to have in a C# application, since you have complete control over
everything in the application (whereas in an ASP.NET service, you are
running in a runtime that existed before your app runs, and will run after
your app completes as well).
You can use a DataSet to cache information, and just store it somewhere
in your app, for use later. However, you have to make sure that what you
cache is something that is accessed frequently enough to justify the cost in
memory that the DataSet takes.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Thomaz" <su***@nce.ufrj.br> wrote in message
news:1c*****************************@phx.gbl...
I would like to know a way to use the DataSet in a memory
cache into a C# application.
I only found examples in ASP.NET applications that they
are not accepted in the C # application.
I am needing to improve the performance of my application
and would like to know as to store in cache the content of
a DataSet.
Thanks...