public function AwsCacheAdapter::__construct in Flysystem - S3 8
Same name and namespace in other branches
- 2.0.x src/AwsCacheAdapter.php \Drupal\flysystem_s3\AwsCacheAdapter::__construct()
Constructs an AwsCacheAdapter object.
Parameters
\Drupal\Core\Cache\CacheBackendInterface $cache: The Drupal cache backend.
string $prefix: (Optional) The prefix to use for cache items. Defaults to an empty string.
File
- src/
AwsCacheAdapter.php, line 36
Class
- AwsCacheAdapter
- A Drupal cache adapter for use with the AWS PHP SDK.
Namespace
Drupal\flysystem_s3Code
public function __construct(CacheBackendInterface $cache, $prefix = '') {
$this->cache = $cache;
$this->prefix = $prefix;
}