Caching samples using EhCache, infinispan and so on