zzsoszz / ehcache-spring-annotations

Automatically exported from code.google.com/p/ehcache-spring-annotations
0 stars 0 forks source link

TriggersRemove attribute 'removeAll=false' is not working. #56

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using EhCache 2.3 with ehcache-spring-annotations 1.1.2. The TriggersRemove 
attribute 'removeAll=false' is not working (the entity is not removed from 
cache). When using 'removeAll=true' the behavior is as expected.

--------------------------------
The code bellow is not working.
--------------------------------

 @Override
    @Transactional(propagation = Propagation.REQUIRED)
    @TriggersRemove(cacheName = "profileCache", when = When.AFTER_METHOD_INVOCATION, removeAll = false)
    public Profile save(Profile profile) {
        return super.salvar( profile);
    }

Original issue reported on code.google.com by alexandr...@gmail.com on 7 Dec 2010 at 6:11

GoogleCodeExporter commented 9 years ago
Hi guys,

Any updates on this?
I also would like to use ehcache 2.3.0, but I need to be sure it is supported 
by ehcache-spring-annotations.

Thank you!
Alex.

Original comment by alexande...@gmail.com on 26 Feb 2011 at 4:03

GoogleCodeExporter commented 9 years ago
Have you turned up logging on ehcache-spring-annotations and ehcache to be sure 
you're getting the same cache key generated for your public Profile 
save(Profile profile) method as the @Cacheable method? The default cache key 
generation code includes the method signature in the key so different methods 
with the same arguments will get the same key generated. Please read the cache 
key generator documentation for how to configure this.

Original comment by eric.dalquist on 26 Feb 2011 at 5:32

GoogleCodeExporter commented 9 years ago
Closing as invalid, a response was never received by the initial reporter.

Original comment by eric.dalquist on 19 Apr 2011 at 9:30