You are here

public function CacheCollectorInterface::get in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Cache/CacheCollectorInterface.php \Drupal\Core\Cache\CacheCollectorInterface::get()
  2. 9 core/lib/Drupal/Core/Cache/CacheCollectorInterface.php \Drupal\Core\Cache\CacheCollectorInterface::get()

Gets value from the cache.

Parameters

string $key: Key that identifies the data.

Return value

mixed The corresponding cache data.

1 method overrides CacheCollectorInterface::get()
CacheCollector::get in core/lib/Drupal/Core/Cache/CacheCollector.php
Gets value from the cache.

File

core/lib/Drupal/Core/Cache/CacheCollectorInterface.php, line 30

Class

CacheCollectorInterface
Provides a caching wrapper to be used in place of large structures.

Namespace

Drupal\Core\Cache

Code

public function get($key);