Skip to content

Commit

Permalink
Adding example usage to README
Browse files Browse the repository at this point in the history
  • Loading branch information
jgivoni committed Aug 31, 2023
1 parent 51bf240 commit 8ae9326
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
```

0 comments on commit 8ae9326

Please sign in to comment.