function MemoryBackend::__construct

Constructs a MemoryBackend object.

Parameters

\Drupal\Component\Datetime\TimeInterface $time: The time service.

1 call to MemoryBackend::__construct()
LruMemoryCache::__construct in core/lib/Drupal/Core/Cache/MemoryCache/LruMemoryCache.php
Constructs an LruMemoryCache object.
1 method overrides MemoryBackend::__construct()
LruMemoryCache::__construct in core/lib/Drupal/Core/Cache/MemoryCache/LruMemoryCache.php
Constructs an LruMemoryCache object.

File

core/lib/Drupal/Core/Cache/MemoryBackend.php, line 38

Class

MemoryBackend
Defines a memory cache implementation.

Namespace

Drupal\Core\Cache

Code

public function __construct(protected TimeInterface $time) {
}

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