Skip to content

Commit 9c71573

Browse files
committed
Added Caching feature section to README.md
1 parent dd5cdf0 commit 9c71573

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,37 @@ return [
285285
];
286286
```
287287

288+
### Caching feature
289+
290+
Either run
291+
292+
```bash
293+
$ composer require league/flysystem-cached-adapter
294+
```
295+
296+
or add
297+
298+
```
299+
"league/flysystem-cached-adapter": "~1.0"
300+
```
301+
302+
to the `require` section of your `composer.json` file and configure `fsID` application component as follows
303+
304+
```php
305+
return [
306+
//...
307+
'components' => [
308+
//...
309+
'fsID' => [
310+
//...
311+
'cache' => 'cacheID',
312+
// 'cacheKey' => 'flysystem',
313+
// 'cacheDuration' => 3600,
314+
],
315+
],
316+
];
317+
```
318+
288319
### Replication feature
289320

290321
Either run

0 commit comments

Comments
 (0)