You are here

public function Predis::doDeleteMultiple in Redis 8

Execute the deletion.

This can be delayed to avoid race conditions.

Parameters

array $cids: An array of cache IDs to delete.

Overrides CacheBase::doDeleteMultiple

See also

static::deleteMultiple()

File

src/Cache/Predis.php, line 105

Class

Predis
Predis cache backend.

Namespace

Drupal\redis\Cache

Code

public function doDeleteMultiple(array $cids) {
  if (!empty($cids)) {
    $keys = array_map([
      $this,
      'getKey',
    ], $cids);
    $this->client
      ->del($keys);
  }
}