You are here

public function DrupalFlysystemCache::load in Flysystem 7

File

src/DrupalFlysystemCache.php, line 37
Contains DrupalFlysystemCache.

Class

DrupalFlysystemCache
An adapter that allows Flysystem to use Drupal's cache system.

Namespace

Drupal\flysystem

Code

public function load() {
  if ($cache = cache_get($this->key)) {
    $this->cache = $cache->data[0];
    $this->complete = $cache->data[1];
  }
}