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

Breadcrumb

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

function CacheItemInterface::set

Sets the value represented by this cache item.

The $value argument may be any item that can be serialized by PHP, although the method of serialization is left up to the Implementing Library.

Parameters

mixed $value: The serializable value to be stored.

Return value

static The invoked object.

File

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

Class

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

Namespace

Psr\Cache

Code

public function set(mixed $value) : static;

API Navigation

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