Skip to content

A PSR-6 compliant adapter decorator for Flysystem v3 that caches file metadata to improve performance.

License

Notifications You must be signed in to change notification settings

Moosylvania/flysystem-cache-adapter

 
 

Repository files navigation

Flysystem Cache Adapter

QA

A PSR-6 compliant adapter decorator for Flysystem v3 that caches file metadata to improve performance.

Why this library?

It supports Flysystem v3 and is currently maintained, which makes it superior to existing alternatives:

  • league/flysystem-cached-adapter (only supports Flysystem v1 which is no longer maintained)
  • lustmored/flysystem-v2-simple-cache-adapter (doesn't appear to be maintained since January 2022)

Installation

composer require jgivoni/flysystem-cache-adapter

Example usage

$cache = new \Symfony\Component\Cache\Adapter\RedisAdapter(...);

$filesystemAdapter = new \League\Flysystem\AwsS3V3\AwsS3V3Adapter(...);

$cachedFilesystemAdapter = new \jgivon\Flysysten\Cache\CacheAdapter($filesystemAdapter, $cache);

About

A PSR-6 compliant adapter decorator for Flysystem v3 that caches file metadata to improve performance.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 98.5%
  • Other 1.5%