E
Erick
i have an asp.net application and I want to save the results of an sql
query in cache. Because the queries take 28 seconds to run (there are
twelve similar queries) I want to run it all at 4am, Place the
results in cache and use those values the rest of the day for all
users.
I have something like this
CallMe = New Caching.CacheItemRemovedCallback(AddressOf
Refresh)
Context.Cache.Insert(CacheKey, SomeObject,Nothing,
EarlyMornindDateTime), Context.Cache.NoSlidingExpiration,
Caching.CacheItemPriority.High, CallMe)
The Refresh function in the CallMe object doesn't run when the time
expires. It runs only if a user request the value in the cache then it
checks the expiry time and then fires the callback function. Cache is
refreshed by the first user to acces cache not automatical by the
system at 4am
Just a reminder. I cannot run a console program or a service. The IIS
server is locked down. It has to be an asp.net based solution within
the same application. Version 1.1 of framework is used.
Some one out there must have had similar problems to this
Any Help appreciated
query in cache. Because the queries take 28 seconds to run (there are
twelve similar queries) I want to run it all at 4am, Place the
results in cache and use those values the rest of the day for all
users.
I have something like this
CallMe = New Caching.CacheItemRemovedCallback(AddressOf
Refresh)
Context.Cache.Insert(CacheKey, SomeObject,Nothing,
EarlyMornindDateTime), Context.Cache.NoSlidingExpiration,
Caching.CacheItemPriority.High, CallMe)
The Refresh function in the CallMe object doesn't run when the time
expires. It runs only if a user request the value in the cache then it
checks the expiry time and then fires the callback function. Cache is
refreshed by the first user to acces cache not automatical by the
system at 4am
Just a reminder. I cannot run a console program or a service. The IIS
server is locked down. It has to be an asp.net based solution within
the same application. Version 1.1 of framework is used.
Some one out there must have had similar problems to this
Any Help appreciated