CacheItemRemovedCallback

F

Frank Lehmann

Hi newsgroup,

I was wondering if anybody could help me with a question
about the System.Web.Caching.Cache object.
When the event routine of
onRemove = New CacheItemRemovedCallback(AddressOf Me.RemovedCallback)
is being called (VB 2005),
when was/will the item actually be removed from the cache:
- before the routine is called
or
- after the routine was exited?

Is this behaviour consistent? I ask because
when I try to read the respective key from the
cache within the event routine, I observe that
it's sometimes still there and sometimes not.
Which affects the possibility to re-insert an item
within the event routine.

Has anybody else come across this and
can comment on it?

I appreciate your help.

Regards,
Frank
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,144
Latest member
KetoBaseReviews
Top