The cache object is more flexible in the long run. You can set a
duration and a priority for the cached item, for instance.
--
Scott
http://www.OdeToCode.com
The cache is good, but it is considered volatile. There is never any
guarantee that the data is there. The item may be removed when it expires or
some condition is met (something you explicitly set), or the runtime may
remove the item when memory gets low. In contrast, the application variables
are there for the duration of the applications life, unless explicitly
removed by you and it provides methods to synchronise access to the
varibales as well. (.Lock for example).

Signature
- Paul Glavich
Microsoft MVP - ASP.NET
> The cache object is more flexible in the long run. You can set a
> duration and a priority for the cached item, for instance.
[quoted text clipped - 13 lines]
> >
> > Daniel
Harry Simpson - 26 Aug 2004 16:37 GMT
True but as with all caching, one ALWAYS checks to see if the data is in the
cache and if not gets fresh data. So unless connection is iffy, this really
should be a concern.
Harry
> The cache is good, but it is considered volatile. There is never any
> guarantee that the data is there. The item may be removed when it expires
[quoted text clipped - 24 lines]
>> >
>> > Daniel