class TestMemoryBackend

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Asset/AssetResolverTest.php \Drupal\Tests\Core\Asset\TestMemoryBackend
  2. 8.9.x core/tests/Drupal/Tests/Core/Asset/AssetResolverTest.php \Drupal\Tests\Core\Asset\TestMemoryBackend
  3. 10 core/tests/Drupal/Tests/Core/Asset/AssetResolverTest.php \Drupal\Tests\Core\Asset\TestMemoryBackend

Hierarchy

  • class \Drupal\Tests\Core\Asset\TestMemoryBackend extends \Drupal\Core\Cache\MemoryBackend

Expanded class hierarchy of TestMemoryBackend

File

core/tests/Drupal/Tests/Core/Asset/AssetResolverTest.php, line 304

Namespace

Drupal\Tests\Core\Asset
View source
class TestMemoryBackend extends MemoryBackend {
    public function getAllCids() {
        return array_keys($this->cache);
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
CacheBackendInterface::CACHE_PERMANENT constant Indicates that the item should never be removed unless explicitly deleted.
MemoryBackend::$cache protected property Array to store cache objects.
MemoryBackend::delete public function Overrides CacheBackendInterface::delete 1
MemoryBackend::deleteAll public function Overrides CacheBackendInterface::deleteAll
MemoryBackend::deleteMultiple public function Overrides CacheBackendInterface::deleteMultiple
MemoryBackend::garbageCollection public function Overrides CacheBackendInterface::garbageCollection
MemoryBackend::get public function Overrides CacheBackendInterface::get 1
MemoryBackend::getMultiple public function Overrides CacheBackendInterface::getMultiple
MemoryBackend::invalidate public function Overrides CacheBackendInterface::invalidate
MemoryBackend::invalidateAll public function Overrides CacheBackendInterface::invalidateAll
MemoryBackend::invalidateMultiple public function Overrides CacheBackendInterface::invalidateMultiple
MemoryBackend::invalidateTags public function Overrides CacheTagsInvalidatorInterface::invalidateTags
MemoryBackend::prepareItem protected function Prepares a cached item. 1
MemoryBackend::removeBin public function Overrides CacheBackendInterface::removeBin
MemoryBackend::reset public function Reset statically cached variables.
MemoryBackend::set public function Overrides CacheBackendInterface::set 2
MemoryBackend::setMultiple public function Overrides CacheBackendInterface::setMultiple
MemoryBackend::__construct public function Constructs a MemoryBackend object.
MemoryBackend::__sleep public function Prevents data stored in memory backends from being serialized.
TestMemoryBackend::getAllCids public function

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