-
Wanghy Cache
Hi
I am playing with Wanghy Cache 1.03rc3 as it's fundamental idea of applying caching using AOP is cool and a great example for AOP instead of logging.
I am wondering when Wanghy will be included in Spring Modules - the roadmap hint's its at 0.4? 1.03rc3 is not compatible with Spring 1.2x.
/Claus
-
Wanghy
There is a minor javadoc issue at CacheProviderFacade
public boolean isFailQuietlyEnabled()
if an exception should thrown
should be
if an exception should be thrown
-
flushBeforeExecution
Hi
I am playing with the LruCacheManager and have it's proxy bean setup in spring .xml like this
Code:
<property name="cacheFlushAttributes">
<props>
<prop key="delete*">[cacheProfileIds=test]</prop>
</props>
</property>
And from the log output any "delete" methods are flush methods.
Code:
[org.wanghy.cache.interceptor.AbstractNameMatchCacheAttributeSource] - Method 'addMethod(String, CacheAttribute)'. Adding method [delete*] with attribute [org.wanghy.cache.interceptor.flush.FlushCache@1c86be5[cacheProfileIds={test},flushedBeforeExecution=false]]
But how do I set the flushedBeforeExecution to true?
-
Hello Claus,
I apologize for the late reply :(
I would like to thank you for your kind comments about Wanghy-Cache and for the javadoc fix :D
To enable 'flushBeforeExecution':
Code:
<property name="cacheFlushAttributes">
<props>
<prop key="delete*">[cacheProfileIds=test][flushBeforeExecution=true]</prop>
</props>
</property>
Wanghy-Cache is not compatible with Spring 1.2. The caching module in SpringModules is already fixed. You can find it in the sandbox (https://springmodules.dev.java.net/s...springmodules/.)
Best regards,
Alex.
-
Hi Alex
Thanks for the reply and answer.
I tried a few combinations with the flushBeforeExecution but not as it should have been within it's own square brackets.
Wanghy is really promising. It just works and it's great that it can cache any method you configure. Then it's possible to have it sit infront of a webservice thath needn't to be called every time.
And integration to OSCache is great as well as it has the cron expression for expiry, in fact the only opensource cache provider I know of with this feature.
So Alex keep up the work and I'm glad that it's now a part of Spring Modules.
-
Hello Claus,
The caching module has been pushed to version 0.2 of SpringModules. You can take a look at JIRA (http://opensource.atlassian.com/proj...report=roadmap). I'll be moving it to the main tree today :)
Thank you again for your generous comments about the project :D
Best regards,
Alex.
-
is there any possibility to download version of wanghy-cache which is compatible with 1.2 spring ?
-
I would suggest you to use the caching module from Spring Modules. It is based on Wanghy-Cache and a has some bugs fixed. Plus, it has support for JDK 1.5 annotations (in CVS though, it will be part of version 0.3 of Spring Modules). Version 0.2, which includes the caching module, will be available sometime next week. For now, you would need to download the code from CVS and build it using the provided Ant script.
Please let me know if this is helpful.
Regards,
Alex.
-
thank you very much for your help, I'll try custom build today evening