Question: how ehcache works in spring?
Answer: To dynamically configure caching of method return values, use the Ehcache Annotations for Spring project at code.google.com. ... The way it works is that the parameter values of the method will be used as a composite key into the cache, caching the return value of the method.