KnpLabs/KnpGaufretteBundle — pull request #13 by RobinvdVleuten (2012-03-01 16:17:41+00:00)
Title: CacheAdapterFactory

I've created this factory because I needed caching on my ftp adapter. Maybe it's worth looking at for the original bundle :)

You can use it like this
```
knp_gaufrette:
adapters:
media_ftp:
ftp:
host: %gaufrette_ftp_host%
username: %gaufrette_ftp_user%
password: %gaufrette_ftp_password%
directory: /Media
create: true
mode: FTP_BINARY
media_local:
local:
directory: %kernel.cache_dir%/filesystem
create: true
media_cache:
cache:
source: media_ftp
cache: media_local
ttl: 7200
filesystems:
media:
adapter: media_cache
```

As you can see, it takes to defined adapters as arguments.