An open API service indexing awesome lists of open source software.

https://github.com/oat-sa/lib-flysystem-filecache

Flysystem adapter to cache files in a secondary adapter
https://github.com/oat-sa/lib-flysystem-filecache

Last synced: 6 months ago
JSON representation

Flysystem adapter to cache files in a secondary adapter

Awesome Lists containing this project

README

        

flysystem Adapter
========

Dual Storage Adapter for league/flysystem
Use to keep a cached local copy of each read of remote file.

It use two storage, a remote location and a local location.
Local location has priority on read operation.
All write operation are made on both.

usage :

$remote = new League\Flysystem\AwsS3V3\AwsS3Adapter(...);
$local = new League\Flysystem\Adapter\Local(...);

$autosave = true;

$adapter = new oat\LibFlysystemFilecache\model\flysystem\DualStorageAdapter($remote, $local ,autosave);

see http://flysystem.thephpleague.com/ to configure your adapters