public function DrupalCacheAdapter::__construct in Flysystem 8
Same name and namespace in other branches
- 3.x src/Flysystem/Adapter/DrupalCacheAdapter.php \Drupal\flysystem\Flysystem\Adapter\DrupalCacheAdapter::__construct()
- 2.0.x src/Flysystem/Adapter/DrupalCacheAdapter.php \Drupal\flysystem\Flysystem\Adapter\DrupalCacheAdapter::__construct()
- 3.0.x src/Flysystem/Adapter/DrupalCacheAdapter.php \Drupal\flysystem\Flysystem\Adapter\DrupalCacheAdapter::__construct()
Constructs a new caching Flysystem adapter.
Parameters
string $scheme: The scheme of the stream wrapper used for this adapter.
\League\Flysystem\AdapterInterface $adapter: The flysystem adapter to cache data for.
\Drupal\flysystem\Flysystem\Adapter\CacheItemBackend $cacheItemBackend: The cache backend to store data in.
File
- src/
Flysystem/ Adapter/ DrupalCacheAdapter.php, line 44
Class
- DrupalCacheAdapter
- A Flysystem adapter implementing caching with Drupal's Cache API.
Namespace
Drupal\flysystem\Flysystem\AdapterCode
public function __construct($scheme, AdapterInterface $adapter, CacheItemBackend $cacheItemBackend) {
$this->scheme = $scheme;
$this->adapter = $adapter;
$this->cacheItemBackend = $cacheItemBackend;
}