You are here

public function CacheBackendMongodb::invalidate in MongoDB 8

Implements Drupal\Core\Cache\CacheBackendInterface::invalidate().

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

File

src/CacheBackendMongodb.php, line 287
Definition of Drupal\mongodb/CacheBackendMongodb.

Class

CacheBackendMongodb
Defines MongoDB cache implementation.

Namespace

Drupal\mongodb

Code

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