Results 1 to 9 of 9

Thread: Wanghy Cache

  1. #1
    Join Date
    Sep 2004
    Location
    Copenhagen, Denmark
    Posts
    113

    Default 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
    /Claus

  2. #2
    Join Date
    Sep 2004
    Location
    Copenhagen, Denmark
    Posts
    113

    Default 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
    /Claus

  3. #3
    Join Date
    Sep 2004
    Location
    Copenhagen, Denmark
    Posts
    113

    Default 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*">&#91;cacheProfileIds=test&#93;</prop>
    			</props>
    		</property>
    And from the log output any "delete" methods are flush methods.
    Code:
    &#91;org.wanghy.cache.interceptor.AbstractNameMatchCacheAttributeSource&#93; - Method 'addMethod&#40;String, CacheAttribute&#41;'. Adding method &#91;delete*&#93; with attribute &#91;org.wanghy.cache.interceptor.flush.FlushCache@1c86be5&#91;cacheProfileIds=&#123;test&#125;,flushedBeforeExecution=false&#93;&#93;
    But how do I set the flushedBeforeExecution to true?
    /Claus

  4. #4
    Join Date
    Aug 2004
    Location
    Weston, FL, USA
    Posts
    23

    Default

    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

    To enable 'flushBeforeExecution':
    Code:
          <property name="cacheFlushAttributes">
             <props>
                <prop key="delete*">&#91;cacheProfileIds=test&#93;&#91;flushBeforeExecution=true&#93;</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.

  5. #5
    Join Date
    Sep 2004
    Location
    Copenhagen, Denmark
    Posts
    113

    Default

    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.
    /Claus

  6. #6
    Join Date
    Aug 2004
    Location
    Weston, FL, USA
    Posts
    23

    Default

    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

    Best regards,
    Alex.

  7. #7
    Join Date
    Mar 2005
    Posts
    21

    Default

    is there any possibility to download version of wanghy-cache which is compatible with 1.2 spring ?

  8. #8
    Join Date
    Aug 2004
    Location
    Weston, FL, USA
    Posts
    23

    Default

    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.

  9. #9
    Join Date
    Mar 2005
    Posts
    21

    Default

    thank you very much for your help, I'll try custom build today evening

Similar Threads

  1. Spring/Hibernate Delete/Update Problem
    By Noname in forum Data
    Replies: 4
    Last Post: Jun 15th, 2005, 11:07 PM
  2. Replies: 8
    Last Post: Jan 22nd, 2005, 04:31 AM
  3. Replies: 0
    Last Post: Dec 5th, 2004, 01:09 AM
  4. enabling second level cache issue
    By phoenix in forum Data
    Replies: 2
    Last Post: Oct 22nd, 2004, 02:05 PM
  5. AOP Cache
    By pietercoucke in forum Architecture
    Replies: 0
    Last Post: Sep 22nd, 2004, 08:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •