This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Unfortunately, the configuration of all that is vendor specific. Each caching product does it a little bit differently. ehcache is done in the ehcache.xml file for defining your cache regions. I recommend reading the cache vendor product's documentation that you choose. That would be the easiest to me.