From 8ae93268c9c45debc3ec56f014a8e5df66cf2e98 Mon Sep 17 00:00:00 2001 From: Jakob Givoni Date: Thu, 31 Aug 2023 15:11:48 +0200 Subject: [PATCH] Adding example usage to README --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index ed9a989..19459a3 100644 --- a/README.md +++ b/README.md @@ -16,3 +16,13 @@ It supports Flysystem v3 and is currently maintained, which makes it superior to ```bash composer require jgivoni/flysystem-cache-adapter ``` + +## Example usage + +```php +$cache = new \Symfony\Component\Cache\Adapter\RedisAdapter(...); + +$filesystemAdapter = new \League\Flysystem\AwsS3V3\AwsS3V3Adapter(...); + +$cachedFilesystemAdapter = new \jgivon\Flysysten\Cache\CacheAdapter($filesystemAdapter, $cache); +```