Question on cache keys

16 views
Skip to first unread message

Abhinav Nigam

unread,
Apr 9, 2015, 12:28:37 PM4/9/15
to ehcache-sprin...@googlegroups.com
I have a cached table T_TESIMONIALS and have 2 methods like below.
 
 
@Cacheable(value = "T_TESTIMONIAL", key = "#testimonial.testimonialId")                 
public Testimonial updateEntity(Testimonial testimonial)

 
and
 
@Cacheable(value = (value = "T_TESTIMONIAL", key = "#testimonialId")                  
public Testimonial getById(Long testimonialId)


Please let me know if the above 2 keys would point to the same cache region, if I pass same testimonialID to both the methods.
 
Thanks
Abhinav
Reply all
Reply to author
Forward
0 new messages