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
- Host: GitHub
- URL: https://github.com/oat-sa/lib-flysystem-filecache
- Owner: oat-sa
- License: gpl-2.0
- Created: 2016-07-21T12:07:28.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-04-16T14:55:41.000Z (about 1 year ago)
- Last Synced: 2024-09-18T02:19:02.838Z (9 months ago)
- Language: PHP
- Size: 106 KB
- Stars: 3
- Watchers: 52
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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