aspose file tools*
The moose likes OO, Patterns, UML and Refactoring and the fly likes looking for some caching design patterns Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "looking for some caching design patterns" Watch "looking for some caching design patterns" New topic
Author

looking for some caching design patterns

Meir Yan
Ranch Hand

Joined: Apr 27, 2006
Posts: 597
hello all , im not sure its the right place to ask put i will try
i need to build some kind of caching mechanism in the web tire level
to cache html component objects my scenario in short :
i have 2 types of objects one is simple and one is complex
the difference between them that the complex object is construct from number of
simple objects , i need to build some kind of simple caching mechanism that can handle both
can some one please direct me to some kind of link or tutorial or some kind of
direction?

thanks allot
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
A cache is probably just a map using a key to get to an object. The object can be anything - your simple case and complex case ought to work exactly the same. Is there some other difference in how you handle the two cases?


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Meir Yan
Ranch Hand

Joined: Apr 27, 2006
Posts: 597
no im still in the design phase and some general coding .
still 2 object one simple and one complex like i said , there is something that called
service locate pattern can it be good design pattern for my scenario?
one more thing , problem i have i dont know how to make this cache recognize
if some object has bean changed even if it cached how can i refresh the object ?
is there also pattern for that ?
steve souza
Ranch Hand

Joined: Jun 26, 2002
Posts: 861
Look into some of the already existing cache implementations first...

http://java-source.net/open-source/cache-solutions
http://www.manageability.org/blog/stuff/distributed-cache-java/view


http://www.jamonapi.com/ - a fast, free open source performance tuning api.
JavaRanch Performance FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: looking for some caching design patterns