You are here

public function DepcalcCacheBackend::invalidate in Dependency Calculation 8

Marks a cache item as invalid.

Invalid items may be returned in later calls to get(), if the $allow_invalid argument is TRUE.

Parameters

string $cid: The cache ID to invalidate.

Overrides CacheBackendInterface::invalidate

See also

\Drupal\Core\Cache\CacheBackendInterface::delete()

\Drupal\Core\Cache\CacheBackendInterface::invalidateMultiple()

\Drupal\Core\Cache\CacheBackendInterface::invalidateAll()

1 call to DepcalcCacheBackend::invalidate()
DepcalcCacheBackend::delete in src/Cache/DepcalcCacheBackend.php
Deletes an item from the cache.

File

src/Cache/DepcalcCacheBackend.php, line 169

Class

DepcalcCacheBackend
Class DepcalcCacheBackend

Namespace

Drupal\depcalc\Cache

Code

public function invalidate($cid) {
  $this
    ->invalidateMultiple([
    $cid,
  ]);
}