You are here

public function PhpRedis::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/PhpRedis.php, line 105

Class

PhpRedis
PhpRedis cache backend.

Namespace

Drupal\redis\Cache

Code

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