Enterprise Cacheing Block

  • Thread starter Thread starter Eddy Jones
  • Start date Start date
E

Eddy Jones

I'm looking to implement the Enterprise Cacheing block as a plugin to an ASP
page. I expect this page to be hit many many times a second and I'm
concerned about thread safety. One of the 'bullet points' that I saw in the
description of the block was "Thread Safety" but I've found nothing
expounding on this feature.

Can someone point me at some literature or examples that shows how this is
implemented?

Anybody have any experience with this block??

Eddy
 
I haven't used it, but if you have something in Cache, it is normally
readonly - it's either there or it isn't, so the only thing you need to be
concerned about is clients not getting any data because the cache item is
"in the process" of being populated. So you could either wrap the
repopulation call in a lock statement block, or just have the calling code
check for null first.
--Peter
 

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

Back
Top