You are here

public function Redis_Cache_PhpRedis::deleteMultiple in Redis 7.3

File

lib/Redis/Cache/PhpRedis.php, line 111

Class

Redis_Cache_PhpRedis
Predis cache backend.

Code

public function deleteMultiple(array $idList) {
  $client = $this
    ->getClient();
  $pipe = $client
    ->multi(Redis::PIPELINE);
  foreach ($idList as $id) {
    $pipe
      ->del($this
      ->getKey($id));
  }

  // Don't care if something failed.
  $pipe
    ->exec();
}