oat-sa / lib-flysystem-filecache
flysystem cache Adapter
v1.2.2
2024-02-16 14:28 UTC
Requires
- php: >=5.5
- league/flysystem: ^1.0.25
Requires (Dev)
- mikey179/vfsstream: 1.4.0
- phpunit/phpunit: ~4.4@dev
- sebastian/global-state: ~1.0@dev
This package is auto-updated.
Last update: 2024-11-04 16:55:26 UTC
README
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