As said Mark it won't make a huge difference. Else what matters is not what
is the best practice but *why* it is the best practice.
One advantage of the cache object i can think of, is that it allows also to
handle the lifetime (see
http://msdn.microsoft.com/en-us/libr...ing.cache.aspx). In
your case it doesn't seem to matter so keep whatever is in use and works...
Hence perhaps this advice you saw...
In all cases it's likely better to hide this from your main app so that you
can change the implementation at will...
--
Patrice
"3P" <(E-Mail Removed)> a écrit dans le message de groupe de discussion :
op.u0oh67ojmsp0fz@mcs...
> I want to cache readonly data at application start and have it in cache
> till application stops/restarts.
> I can use static fields, Cache object or Application object.
> Which is best? I've read that Application is for compatibility with ASP
> and shouldn't be used for caching.