This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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?
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
Joined: Apr 27, 2006
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 ?