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.