protected function ExifTagMapper::setCache in File metadata manager 8
Same name and namespace in other branches
- 8.2 file_mdm_exif/src/ExifTagMapper.php \Drupal\file_mdm_exif\ExifTagMapper::setCache()
Sets a cache entry.
Parameters
string $id: The cache id to set.
mixed $value: The value to cache.
Return value
$this
4 calls to ExifTagMapper::setCache()
- ExifTagMapper::getStringToIfdMap in file_mdm_exif/
src/ ExifTagMapper.php - Returns the map of IFD strings to IFD integers.
- ExifTagMapper::getStringToTagMap in file_mdm_exif/
src/ ExifTagMapper.php - Returns the map of TAG strings to IFD/TAG integers.
- ExifTagMapper::getSupportedIfdsMap in file_mdm_exif/
src/ ExifTagMapper.php - Returns the list of supported IFDs.
- ExifTagMapper::getSupportedKeysMap in file_mdm_exif/
src/ ExifTagMapper.php - Returns the list of supported metadata 'keys'.
File
- file_mdm_exif/
src/ ExifTagMapper.php, line 344
Class
- ExifTagMapper
- Provides a mapping service for EXIF ifds and tags.
Namespace
Drupal\file_mdm_exifCode
protected function setCache($id, $value) {
$config = $this->configFactory
->get('file_mdm_exif.file_metadata_plugin.exif');
$this->cache
->set("map:exif:{$id}", $value, Cache::PERMANENT, $config
->getCacheTags());
return $this;
}