Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

cache problem  RSS feed

 
rajiv gupta
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have been told to store user id in cookie. Based on cookie users attribute preferences are fetched from database and top level and Left hand side menu is built in background and stored in cache for improved performance. There is a thread running which refreshes the public cache and per user cache.

I am new to java. Can any one tell me in detail,how cache works and how to do the coding for that as mentioned above.

Thnkx in Advance
 
Paul Codillo
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by gotorajiv java:
Can any one tell me in detail,how cache works...


May I ask what application are you trying to implement? Web application? Standalone application? Or you want to know the details on how the JVM itself internally implements caching?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!