You can use Gaufrette (https://github.com/KnpLabs/Gaufrette, https://github.com/KnpLabs/KnpGaufretteBundle) to create a virtual filesystem from almost any storage possible (APC, memory, S3, FTP, SQL db). Then set cache-dir to gaufrette://s3 for example.