You are here

public function AwsCacheAdapter::get in Flysystem - S3 8

Same name and namespace in other branches
  1. 2.0.x src/AwsCacheAdapter.php \Drupal\flysystem_s3\AwsCacheAdapter::get()

File

src/AwsCacheAdapter.php, line 44

Class

AwsCacheAdapter
A Drupal cache adapter for use with the AWS PHP SDK.

Namespace

Drupal\flysystem_s3

Code

public function get($key) {
  if ($item = $this->cache
    ->get($this->prefix . $key)) {
    return $item->data;
  }
}