vijaykr...@gmail.com
unread,Mar 13, 2013, 10:40:23 PM3/13/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ehcache-sprin...@googlegroups.com
public List<CoverageAgreement> retrieveCoveragesByPlanId( Integer planId, DateTime dateFrom, DateTime dateTo) --> In this method i want to cache the return type only based on the PLAN ID argument. Is there any way i can do that.
I did the below and its not working. Can any one please help.
@Cacheable(cacheName = "contractByPlanIdCache", keyGenerator = @KeyGenerator(name = "StringCacheKeyGenerator"))
public List<CoverageAgreement> retrieveCoveragesByPlanId(@PartialCacheKey Integer planId, DateTime dateFrom, DateTime dateTo) {