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

Breadcrumb

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

class Cache

Same name in this branch
  1. 11.1.x vendor/composer/composer/src/Composer/Cache.php \Composer\Cache
  2. 11.1.x vendor/squizlabs/php_codesniffer/src/Util/Cache.php \PHP_CodeSniffer\Util\Cache
  3. 11.1.x core/lib/Drupal/Core/Cache/Cache.php \Drupal\Core\Cache\Cache

Describes the default HTTP cache headers on controllers. Headers defined in the Cache attribute are ignored if they are already set by the controller.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

  • class \Symfony\Component\HttpKernel\Attribute\Cache

Expanded class hierarchy of Cache

See also

https://symfony.com/doc/current/http_cache.html#making-your-responses-h…

1 file declares its use of Cache
CacheAttributeListener.php in vendor/symfony/http-kernel/EventListener/CacheAttributeListener.php
22 string references to 'Cache'
CacheFactory::get in core/lib/Drupal/Core/Cache/CacheFactory.php
Instantiates a cache backend class for a given cache bin.
ChainedFastBackendFactory::__construct in core/lib/Drupal/Core/Cache/ChainedFastBackendFactory.php
Constructs ChainedFastBackendFactory object.
Config::printPHPCSUsage in vendor/squizlabs/php_codesniffer/src/Config.php
Prints out the usage information for PHPCS.
Config::processLongArgument in vendor/squizlabs/php_codesniffer/src/Config.php
Processes a long (--example) command-line argument.
Config::restoreDefaults in vendor/squizlabs/php_codesniffer/src/Config.php
Restore default values for all possible command line arguments.

... See full list

File

vendor/symfony/http-kernel/Attribute/Cache.php, line 23

Namespace

Symfony\Component\HttpKernel\Attribute
View source
final class Cache {
    public function __construct(?string $expires = null, int|string|null $maxage = null, int|string|null $smaxage = null, ?bool $public = null, bool $mustRevalidate = false, array $vary = [], ?string $lastModified = null, ?string $etag = null, int|string|null $maxStale = null, int|string|null $staleWhileRevalidate = null, int|string|null $staleIfError = null) {
    }

}

Members

Title Sort descending Modifiers Object type Summary
Cache::__construct public function

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal