Ehcache is one of the widely used java distributed cache for caching purpose. As you might know that Ehcache has been aqquired by Terracotta inc. one of the pioneer for providing distributed caching funtionality.
Ehcache can serve as a local cache that the applicaitons can use to boost the performance of single node or multi-node applications.
Terracotta provides distributed object caching essential for elastic scalability and next-generation cloud environments. One of the pioneer in Cloud services, Amazon EC2 also provides Terracotta integration with their cloud instance if your application require one.
For more information on this topic please visit: