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

Breadcrumb

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

function CacheItemInterface::get

Retrieves the value of the item from the cache associated with this object's key.

The value returned must be identical to the value originally stored by set().

If isHit() returns false, this method MUST return null. Note that null is a legitimate cached value, so the isHit() method SHOULD be used to differentiate between "null value was found" and "no value was found."

Return value

mixed The value corresponding to this cache item's key, or null if not found.

File

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

Class

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

Namespace

Psr\Cache

Code

public function get() : mixed;

API Navigation

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