Announcement Announcement Module
Collapse

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions (http://www.springsource.org/extensions) project, this forum has been decommissioned in favour of Spring Extensions one at:
http://forum.springsource.org/forumdisplay.php?f=44

Please see the Spring Extensions home page for a complete list of current projects in Java, .NET and ActionScript. You can also propose one if you want.

Cheers,
Costin Leau
SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
http://twitter.com/costinl
See more
See less
Wanghy Cache Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    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

    Comment


    • #3
      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?

      Comment


      • #4
        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.

        Comment


        • #5
          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.

          Comment


          • #6
            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.

            Comment


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

              Comment


              • #8
                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.

                Comment


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

                  Comment

                  Working...
                  X