S3OSCache project is an OSCache store implementation that uses Amazon's Web Service S3 service to store the cached data. What this means is that if you are currently using oscache and storing cached objects on disk or in memory, you could easily configure this add-on to oscache and start storing your cached objects on S3.
You're probably asking why would you want to do this. Here is my situation... I have a website publishing system that dynamically resizes images for the user on demand. For example, it might create thumbnails or simply shrink a 2 megapixel photo to efficiently display that as a 400x300 pixel image.
Image resizing is a CPU intensive activity, especially with the Java Imaging API. From the start, I used OSCache to cache these smaller versions of the images on the app server's file system. The problem is that I can have anywhere between 2 and 7 app servers running at a time. This means that in the worst (and common) case, that image gets resized 7 times across my cluster.
I saw what could be done with OSCache storage API, so I took the Amazon S3 REST API and refactored it, since I needed to add HEAD method support and didn't need a lot else. I repackaged the REST API code so that it won't collide with the main Amazon S3 REST API jar if you're using that. The result is s3oscache
· Java 1.5 or greater (? - I'm guessing it will work in 1.4, but haven't tried)
· OSCache 2.3 or later
· commons logging 1.0.4 (included in oscache)
· An account with S3
· A bucket and your AWS access information
· S3OSCache library