Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EHCache dynamic data caching

 
Rithanya Laxmi
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Whether we can use EHCache for caching dynamic data? I am using Ehcache to cache static webservice response which is
working fine. But when the webservice response is dynamic in nature, (ie)the request parameter which will be passed
will be different like CustId 100, 200, 300 hence the webservice response which we will get will be different specific
to the request param that is passed. Whether we can use EHcache or any caching mechanisms to cache those dynamic
webservice response? Please clarify. Any examples are really appreciated.


Thanks.
 
Amit G Piplani
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basically, you should be making your key also dynamic. If your request is dynamic with custId, then make it that as key and response as Webservice response.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic