Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding java caching framework

 
amit sharma
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am developing a web application .To reduce database load ,i want to cache data which to common to all users .I search a lot for caching framework and find quite a lot(OSCache,EHCache,JCS,Open Terracotta) but now i am confused which to use.Can anyone please tell me which to use
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That depends on your requirements, about which we know nothing.
 
amit sharma
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:That depends on your requirements, about which we know nothing.

Sorry for stupid and incomplete post .
My requirement is like
I have one table(col1,col2,col3) .There are many columns but my where clause doesn't need it . There are about 3 frequent query
against this table .One query is select on col1(primary key) .Second query is order on col2(int type) . third query is order on col3
.col1,col2 are constant whereas there are frequent updation on col2 .
I want a snapshot of database .Instead of taking data from database ,i can take it from cache .
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That sounds like a basic enough thing to do that any of those packages should support it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic