Groups | Blog | Home
all groups > asp.net caching > august 2004 >

asp.net caching : want to save cache object in application_end() method


Dicky Cheng
8/9/2004 6:28:23 PM
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
10/4/2004 2:45:39 PM
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.=20



[quoted text, click to view]

-Calvin Luttrell
ProjectThunder.com, Inc.
Torrance, Ca
My Profile

=20
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 =
AddThis Social Bookmark Button