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

Breadcrumb

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

function CacheItemInterface::getKey

Returns the key for the current cache item.

The key is loaded by the Implementing Library, but should be available to the higher level callers when needed.

Return value

string The key string for this cache item.

File

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

Class

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

Namespace

Psr\Cache

Code

public function getKey() : string;

API Navigation

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