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

Breadcrumb

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

function ChainCache::getTimestamp

Overrides CacheInterface::getTimestamp

File

vendor/twig/twig/src/Cache/ChainCache.php, line 59

Class

ChainCache
Chains several caches together.

Namespace

Twig\Cache

Code

public function getTimestamp(string $key) : int {
    $splitKey = $this->splitKey($key);
    foreach ($this->caches as $cache) {
        if (0 < ($timestamp = $cache->getTimestamp($cache->generateKey(...$splitKey)))) {
            return $timestamp;
        }
    }
    return 0;
}

API Navigation

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