Just because someone asked me how to do it today:
here is an article
on how to use the
System.Web.Caching.Cache
object outside of web applications, such as in your Windows
Forms applications or console applications. No need to
reinvent the wheel.
2 Comments
It is kind of old news I guess.
More interestingly, the actual Cache class should've
existed outside the System.Web namespace. It feels wrong
to put it in System.Web, whn it could be used anywhere.
Some namespace like System.Caching would've been a
better place for the Cache class.
Hi,
The MSDN documentation now warns against using the
System.Web.Caching.Cache class outside of web
applications in .NET 2.0 environments.