Hi, I am using ASP.net built-in Cache object, and i store a lot of cache
objects for saving database accessing time. When my application start, i
will load saved cache object to the Cache object, and when the application
end, i want to save all cache object to the disk. Unfortunately, the Cache
object is empty in the application_end method, so that I can't save cache
object. I am not sure why all cache will flush before the application_end
method, and any workaround that I can save all cache object before
application restart?
Calvin Luttrell /PT - 04 Oct 2004 22:45 GMT
Dicky,
Why are you waiting for the application_end to save these objects to cache? Would you be better served by saving the data to cache then setting the expiration to an appropriate amount of time? Then retrieve that data and if it is not there go and retrieve it.
> Hi, I am using ASP.net built-in Cache object, and i store a lot of cache
> objects for saving database accessing time. When my application start, i
[quoted text clipped - 4 lines]
> method, and any workaround that I can save all cache object before
> application restart?
-Calvin Luttrell
ProjectThunder.com, Inc.
Torrance, Ca
My Profile
Note: The information contained in this email and document(s) attached are for the exclusive use of the addressee and may contain confidential, privileged and non-disclosable information. All information is provided on a 'as is' basis.