Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[5.5] Flysystem caching #22310
This PR adds support for Flysystem caching without the need for a custom filesystem.
To enable it:
's3' => [ 'driver' => 's3', 'key' => env('AWS_ACCESS_KEY_ID'), 'secret' => env('AWS_SECRET_ACCESS_KEY'), 'region' => env('AWS_DEFAULT_REGION'), 'bucket' => env('AWS_BUCKET'), 'cache' => true, ],
You could flush it like
It doesn't support the other drivers because there's either no equivalent store class bundled with the flysystem-cached-adapter package, I don't have a way to test them, or I just don't have the time. I thought it would be better to support something than nothing.
(Also, selfishly, we only need Redis for our purposes)
Thanks for your feedback, @GrahamCampbell !
I took a look at your package - which is awesome - and actually updated the PR using your cache class to funnel everything through to the Illuminate cache. So, credit to you on that.
I appreciate that the functionality exists in a third party package, but bringing this little part of it into core Laravel would be nice. It's not that much extra code.