Why use MemCache for database results caching when hibernate and spring does it all
Rahul Juneja
Ranch Hand
Joined: Aug 03, 2002
Posts: 425
posted
0
I have been arguing this question with myself, Why does anybody need memcache for caching database results when you have hibernate caching or you can enable any other third party cache.
Let me put it this way. Is memcache different type of cache then EHCache or any other open source caches.
Whatever is used for Hibernate/JPA caching is for DB contents only. Standalone caches can be used for all kinds of data, wherever they originate. In that sense it's not much different from EhCache in standalone mode (outside of JPA). I don't think EhCache can be used by non-Java clients, though.