• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java caching frameworks ...  RSS feed

 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

What is the best caching framework in Java ?

Please note that I'm using J2SE ...

Regards,
 
fred rosenberger
lowercase baba
Bartender
Posts: 12565
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is seldom a 'best' solution for any issue in software design. Almost anything is going to require trade-offs between any number of other factors. Without knowing what is important to YOUR organization, it's hard for anyone to offer much of an opinion.
 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What I'm basically looking for is to cache my java objects through the of XML configuration files, any help ?
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You mean serialization, so you can reload objects when you start the JVM at a different time?

Apart from default serialization (which is hard to read / edit outside of a JVM), XStream can be quite useful for that. It basically also does serialization, but then to and from XML.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might look at whirlycache.

Bill
 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the replies.

I have some questions regarding Whirlycache since I'm new to it and to caching in general.

Can I load objects to my cache at system start time ?

And is this cache refreshable, meaning, when new records are added to the database, can they be automatically loaded to the cache ?

Thanks and regards,
 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What i meant was; Is the Whirlycache a push and pull cache ?

Thanks again,
 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to auto synchronize it with database tables through hibernate objects ?
 
Matteo Di Furia
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I may be wrong, but doesn't Hibernate internally support use of cache ? If I recall correctly, also, it supports the use of pluggable caches.
 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes you are right, but does Whirlycache also provide that facility ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!