I've implemented a call-back function
to repopulate the stored Cache objects
when they expires or are removed
it works great
but
in one situation only it doesen't work
(that is the callback is not fired):
when,
I presume (I'm not sure),
the server recycles something
(or recycles the Cache objects,
or recycles the whole .asp application,
or it recycles something else, I don't know)
but, surely, the callback doesn't work.
What is the server recycling?
Why the callback is not fired? 1 1370
a recycle is when the appdomain is unloaded and loaded. the cache
callback happens to the appdomain being unloaded, but the loaded
appdomain is a fresh start, so its an empty cache which no objects or
callback registered.
a recycle is done under several conditions, timeout between requests,
too much memory, code changes, etc.
note: a recycle also clears inproc sessions
-- bruce (sqlwork.com)
an wrote:
I've implemented a call-back function
to repopulate the stored Cache objects
when they expires or are removed
it works great
but
in one situation only it doesen't work
(that is the callback is not fired):
when,
I presume (I'm not sure),
the server recycles something
(or recycles the Cache objects,
or recycles the whole .asp application,
or it recycles something else, I don't know)
but, surely, the callback doesn't work.
What is the server recycling?
Why the callback is not fired?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Stanley |
last post by:
has anyone managed to use cache application block in a web application?
thanks
stanley
|
by: Brian Vallelunga |
last post by:
I'm having a problem using the Cache object with asp.net. Here is what I
have:
1) I put something in cache and set its callback method.
2) The object times out after X minutes and calls the callback method
specified.
3) The callback method gets the newest version of the item from the db and
then calls a helper method to put the item back into cache. It looks like
this:
//Pseudocode
|
by: Glenn |
last post by:
Hi,
I have a config XML file that I am using from the application cache. I have configured the entry with a remove callback to re-populate cache automatically when the XML file changes. All is well until the XML file is changed. The cached item is being removed as I would expect, but the remove callback is not firing at all, hence a NullReferenceException is being raised when I try to access the cache object.
Please see code snippet...
|
by: NWx |
last post by:
Hi,
I' trying to implement a callback method when a cache object expires
I want to do this to automatically logout user after a timeout (for demo
purposes)
My thought is, when user logon, create a cache object which expires after,
let's say, 15 minutes, and in that moment, to direct user to a page telling
the time to run demo app was expired.
|
by: Jeremy S. |
last post by:
Just wondering if/how a sliding Cache expiration interacts with Application
Pool Worker Process Recycling.
Specifically, if I were to place some value into the Cache object with a
sliding window of 2 hours, but
property setting for the relevant App Pool is 1 hour (and there is no
activity following the placement of the data into the Cache), then WILL the
data automatically be removed from the Cache when the App Pool recycles? Or,
is it...
| |
by: Pitcairnia |
last post by:
I have a page that simply displays a list of links as anchors<a>. The links
are generated from the database in a loop and written out to a table cell
<td> inner html property. The anchors each have an onmouseover javascript
that reads a short text description of the link, and writes it to a div that
was hidden. It also moves the div using absolute positining to be slightly
offset from the locus of the mouse click. The anchors each have...
|
by: Sergey via DotNetMonster.com |
last post by:
I have Win2003 64bit server with 6 GB or RAM. Windows Task Manager displays
that:
* 0.5 GB are taken by IIS
* 2.0 GB - SQL Server and other applications
* 3 GB - System Cache
* 0.5 GB - available
So it seems like I have plenty of available RAM. However when I add small
data objects to the ASP.NET cache it almost immediately automatically deletes
|
by: teo |
last post by:
I insert few objects in the Cache
and
use a callback to be notified of their removal
in this way:
Page.Cache.Insert("MyObj1",myDataTable1,.........., AddressOf
OnItemRemoval)
Page.Cache.Insert("MyObj2",myDataTable2,.........., AddressOf
|
by: =?Utf-8?B?TmFkYXYgUG9wcGxld2VsbA==?= |
last post by:
Hi Everybody,
I'm trying to save some items in the asp.net cache, but they are removed
from the cache WAY before they are supposed to (at least as I understand the
documentation).
I add the object to the cache using
this.Context.Cache.Insert(key, userInfo, null,
System.Web.Caching.Cache.NoAbsoluteExpiration, TimeSpan.FromMinutes(10),
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |