I\'ve got an application that downloads data from a 3rd party at 3am every morning Nothing changes in terms of content until then...
is it possible to cache the \"produc
Another option is to use the System.Web.Caching.Cache class. Each time you load your data you can cache it here and then retrieve it as needed. This class does allow for expiration by TimeSpan but since you download the data at a specific time each day that doesn't really matter.
using System.Web.Caching;
Public Class SomeClass
{
Public SomeDataCollection GetCachedData()
{
if( Cache["Key"] == null) //You want to always be sure to check if set
Cache["Key"] = GetDataCollectionFromSomewhere();
return Cache["Key"];
}
}