MemoryCacheInterface.php

Same filename and directory in other branches
  1. 9 core/lib/Drupal/Core/Cache/MemoryCache/MemoryCacheInterface.php
  2. 8.9.x core/lib/Drupal/Core/Cache/MemoryCache/MemoryCacheInterface.php
  3. 10 core/lib/Drupal/Core/Cache/MemoryCache/MemoryCacheInterface.php

Namespace

Drupal\Core\Cache\MemoryCache

File

core/lib/Drupal/Core/Cache/MemoryCache/MemoryCacheInterface.php

View source
<?php

namespace Drupal\Core\Cache\MemoryCache;

use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Cache\CacheTagsInvalidatorInterface;

/**
 * Defines an interface for memory cache implementations.
 *
 * This has additional requirements over CacheBackendInterface and
 * CacheTagsInvalidatorInterface. Objects stored must be the same instance when
 * retrieved from cache, so that this can be used as a replacement for protected
 * properties and similar.
 *
 * @ingroup cache
 */
interface MemoryCacheInterface extends CacheBackendInterface, CacheTagsInvalidatorInterface {

}

Interfaces

Title Deprecated Summary
MemoryCacheInterface Defines an interface for memory cache implementations.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.