I am reading the documentation about caching here http://www.springframework.net/doc-l...t-library.html and I'm a bit confused, so I just want to make sure I have understood it correctly.
If you use the xml as given in the example, ie:
Does this mean the container will then look for all objects matched by *Dao that are also marked with [CacheResult("AspNetCache", "whatever..")] and apply the caching advice to them?
<object" id="CacheAspect" type="Spring.Aspects.Cache.CacheAspect, Spring.Aop"/>
<object id="AspNetCache" type="Spring.Caching.AspNetCache, Spring.Web">
<property name="SlidingExpiration" value="true"/>
<property name="Priority" value="Low"/>
<property name="TimeToLive" value="00:02:00"/>
<!-- Apply aspects to DAOs -->
<object type="Spring.Aop.Framework.AutoProxy.ObjectNameAutoProxyCreator, Spring.Aop">
ie, it is never enough to just mark the method with the CacheResult attribute, you also need to set up the ObjectNameAutoProxyCreator as above?
Just making sure