CacheItem.php in Flysystem 3.x
File
src/Flysystem/Adapter/CacheItem.php
View source
<?php
namespace Drupal\flysystem\Flysystem\Adapter;
class CacheItem {
protected $metadata = [];
public function getMetadata() {
return $this->metadata;
}
public function updateMetadata(array $metadata) {
static $keys = [
'size' => TRUE,
'mimetype' => TRUE,
'visibility' => TRUE,
'timestamp' => TRUE,
'type' => TRUE,
];
$this->metadata = array_intersect_key($metadata, $keys) + $this->metadata;
}
}
Classes
Name |
Description |
CacheItem |
A filesystem item stored in the Drupal cache. |