This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
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: 35444
    
    9
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: 2234

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: 222
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 !
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Why use MemCache for database results caching when hibernate and spring does it all
 
Similar Threads
Caching in Rails application
Doubt in a Hibernate feature
hibernate cache
Is there a default cache?
Pooling vs Instance Caches