aspose file tools
The moose likes Performance and the fly likes Why use MemCache for database results caching when hibernate and spring does it all Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Performance
Reply Bookmark "Why use MemCache for database results caching when hibernate and spring does it all" Watch "Why use MemCache for database results caching when hibernate and spring does it all" New topic
Author

Why use MemCache for database results caching when hibernate and spring does it all

Rahul Juneja
Ranch Hand

Joined: Aug 03, 2002
Posts: 425
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.

Thanks,
Rahul


Rahul Juneja
ThoughtClicks - http://techlabs.thoughtclicks.com
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 32768
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.


Android appsImageJ pluginsJava web charts
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2231

Why does anybody need memcache for caching database results when you have hibernate caching or you can enable any other third party cache.


I agree with ulf and how can you expect that every project will be built using technologoes Hibernate Or Spring .


Save India From Corruption - Anna Hazare.
Kees Jan Koster
Ranch Hand

Joined: Mar 31, 2009
Posts: 220
Plus, you can have Hibernate use memcached for caching.


Java-monitor, JVM monitoring made easy (and free)
Rahul Juneja
Ranch Hand

Joined: Aug 03, 2002
Posts: 425
Thanks guys !
 
IntelliJ Java IDE
 
subject: Why use MemCache for database results caching when hibernate and spring does it all
 
Threads others viewed
Pooling vs Instance Caches
Caching in Rails application
Is there a default cache?
hibernate cache
Doubt in a Hibernate feature
MyEclipse, The Clear Choice