Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ReadOnlyFilesystemCache.php

class ReadOnlyFilesystemCache

Implements a cache on the filesystem that can only be read, not written to.

@author Quentin Devos <quentin@devos.pm>

Hierarchy

  • class \Twig\Cache\FilesystemCache implements \Twig\Cache\CacheInterface, \Twig\Cache\RemovableCacheInterface
    • class \Twig\Cache\ReadOnlyFilesystemCache extends \Twig\Cache\FilesystemCache

Expanded class hierarchy of ReadOnlyFilesystemCache

File

vendor/twig/twig/src/Cache/ReadOnlyFilesystemCache.php, line 19

Namespace

Twig\Cache
View source
class ReadOnlyFilesystemCache extends FilesystemCache {
    public function write(string $key, string $content) : void {
        // Do nothing with the content, it's a read-only filesystem.
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
FilesystemCache::$directory private property
FilesystemCache::$options private property
FilesystemCache::FORCE_BYTECODE_INVALIDATION public constant
FilesystemCache::generateKey public function Generates a cache key for the given template class name. Overrides CacheInterface::generateKey
FilesystemCache::getTimestamp public function Returns the modification timestamp of a key. Overrides CacheInterface::getTimestamp
FilesystemCache::load public function Loads a template from the cache. Overrides CacheInterface::load
FilesystemCache::remove public function Overrides RemovableCacheInterface::remove
FilesystemCache::__construct public function
ReadOnlyFilesystemCache::write public function Writes the compiled template to cache. Overrides FilesystemCache::write
RSS feed
Powered by Drupal