You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is recommended to use another caching library to improve performance. This can be done by passing a [PSR-6](http://www.php-fig.org/psr/psr-6/) compatible library to the client:
266
266
267
267
```php
268
-
$cache = new Stash\Pool(new Stash\Driver\FileSystem);
268
+
use League\Flysystem\Adapter\Local;
269
+
use League\Flysystem\Filesystem;
270
+
use Cache\Adapter\Filesystem\FilesystemCachePool;
271
+
272
+
$filesystemAdapter = new Local(__DIR__.'/');
273
+
$filesystem = new Filesystem($filesystemAdapter);
274
+
275
+
$cache = new FilesystemCachePool($filesystem);
269
276
$client->setCache($cache);
270
277
```
271
278
272
-
In this example we use [StashPHP](http://www.stashphp.com/). Add this to your project with composer:
279
+
In this example we use [PHP Cache](http://www.php-cache.com/). Add this to your project with composer:
0 commit comments