• Post Reply Bookmark Topic Watch Topic
  • New Topic

Implement Cache in java  RSS feed

 
tarunbhatia bhatia
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I'm totally new to caching. Can you please help me with following requirement:

1. I need to display static html pages lying on ftp location whenever a user logs into the system.
2. These static html do not change for a month or two.

Thus I want to implement is, keep a cache of html pages on my web-app and check if it is 2 month old then download the latest copy from ftp otherwise display the file kept in cache to the logged in user.

Thanks,
Tarun
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There has been a LOT of work on caching in Java - for example the JSR 107 attempt to define a common API.

You might look at whirlycache - a long running project.

Bill
 
Ulf Dittmer
Rancher
Posts: 42972
73
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!