PDA

View Full Version : Ent Lib's Caching Application Block in Spring


swalters
06-07-2006, 11:16 PM
Hi,

I'm needing an in-memory cache for a lot of reference tables in a smart-client application. I think that the EnterpriseLibrary Caching Block may be the way to go. In the latest Spring Air, I see a commented reference to it in

<!--
<object id="entLibCacheAdvice" type="Spring.Integration.EnterpriseLibrary.Caching.Cache Advice, Spring.Integration.EnterpriseLibrary">
<property name="CacheManager" ref="entLibCacheManager"/>
</object>

<object id="entLibCacheManager" type="Spring.Integration.EnterpriseLibrary.Caching.Cache FactoryObject, Spring.Integration.EnterpriseLibrary"/>
-->

I can't find any references to Spring.Integration.EnterpriseLibrary in the current source. Is this something that will be or could be added soon?

Thanks,

Shane Walters

Bruno Baia
06-07-2006, 11:44 PM
Hi Shawn,

it seems it's not supported anymore because it have been removed, don't know the history about this. Maybe Mark or Aleks can anwser.

You can retrieve them from the web CVS viewer in sourceforge showing the dead files :
http://springnet.cvs.sourceforge.net/springnet/Spring.Net/src/Spring/Spring.Integration.EnterpriseLibrary/?hideattic=0
http://springnet.cvs.sourceforge.net/springnet/Spring.Net/src/Spring/Spring.Integration.EnterpriseLibrary/Caching/?hideattic=0

Don't think you should use this, but you can see what it can be done.
You can create your own CacheAdvice inheriting from the CacheAdvice in Spring.Aop or create your own advice using another CacheAttribute if you want to use an attribute to specify cached methods.

Hope this helps,
Bruno

Aleks Seovic
06-11-2006, 07:13 AM
The reason for removal is that this was a quickie built for my talk at VSLive! last October and needs some refactoring before it can be made available for general use.

Basically, our CachingAdvice needs to change in order to support pluggable cache store providers, instead of relying on the advice inheritance for that.

That said, code that's in the attic works just fine for EntLib integration, so if you really need it you can use it until final version is commited.

Later,

Aleks