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

Breadcrumb

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

function CacheItemInterface::isHit

Confirms if the cache item lookup resulted in a cache hit.

Note: This method MUST NOT have a race condition between calling isHit() and calling get().

Return value

bool True if the request resulted in a cache hit. False otherwise.

File

vendor/psr/cache/src/CacheItemInterface.php, line 60

Class

CacheItemInterface
CacheItemInterface defines an interface for interacting with objects inside a cache.

Namespace

Psr\Cache

Code

public function isHit() : bool;
RSS feed
Powered by Drupal