1<?php 2 3namespace Drupal\Component\FileCache; 4 5/** 6 * Null implementation for the file cache. 7 */ 8class NullFileCache implements FileCacheInterface { 9 10 /** 11 * Constructs a FileCache object. 12 * 13 * @param string $prefix 14 * A prefix that is used as a prefix, should be set to a secure, unique key 15 * to prevent cache pollution by a third party. 16 * @param string $collection 17 * A collection identifier to ensure that the same files could be cached for 18 * different purposes without clashing. 19 * @param string|null $cache_backend_class 20 * (optional) The class that should be used as cache backend. 21 * @param array $cache_backend_configuration 22 * (optional) The configuration for the backend class. 23 */ 24 public function __construct($prefix, $collection, $cache_backend_class = NULL, array $cache_backend_configuration = []) { 25 } 26 27 /** 28 * {@inheritdoc} 29 */ 30 public function get($filepath) { 31 return NULL; 32 } 33 34 /** 35 * {@inheritdoc} 36 */ 37 public function getMultiple(array $filepaths) { 38 return []; 39 } 40 41 /** 42 * {@inheritdoc} 43 */ 44 public function set($filepath, $data) { 45 } 46 47 /** 48 * {@inheritdoc} 49 */ 50 public function delete($filepath) { 51 } 52 53} 54