You can configure an existing OSCache installation to use this add-on library to store cached data at S3. This is particularly useful when you have clusters of servers or when you are dynamically (elastically) adding and removing app servers.
Full information on how to use it including an example, source code, and everything is available at http://www.lokitech.com/projects/s3oscache/index.