posts - 4238, comments - 3946, trackbacks - 370

My Links

News



Subscribe Subscribe

image image image





This is my personal weblog. These postings are provided 'AS IS' with no warranties, and confer no rights. The views expressed on this weblog are mine alone and do not necessarily reflect the views of my employer.

Licenza Creative Commons

Tag Cloud

Archives

Post Categories

Il Caching di Enterprise Library non è così AppDomain safe come dicono?

Sembrerebbe così... il caching non l'ho ancora usato, ma questa cosa me la segno...

Although the documentations says that CacheManager is safe to use in a single AppDomain - this is not quite true.

The problem is that the CacheManager is instanced by the CacheFactory. And the problem is that we need to INSTANCE the CacheFactory (WHY???).

Meaning if you don't keep a single instance of your CacheFactory. You will end up having two or more CacheMangers in memory, thus each CacheManager has its own Hashtable. Thus CHAOS.

Fonte: http://dotnetjunkies.com/WebLog/Principal/archive/2005/03/02/58044.aspx

Print | posted on giovedì 3 marzo 2005 12:44 |

Comments have been closed on this topic.

Powered by:
Powered By Subtext Powered By ASP.NET