You are here

public function CacheRawBackendInterface::deleteMultiple in Supercache 8

Same name and namespace in other branches
  1. 2.0.x src/Cache/CacheRawBackendInterface.php \Drupal\supercache\Cache\CacheRawBackendInterface::deleteMultiple()

Deletes multiple items from the cache.

If the cache items are being deleted because they are no longer "fresh", you may consider using invalidateMultiple() instead. This allows callers to retrieve the invalid items by calling get() with $allow_invalid set to TRUE. In some cases an invalid item may be acceptable rather than having to rebuild the cache.

Parameters

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

See also

\Drupal\supercache\Cache\CacheRawBackendInterface::delete()

\Drupal\supercache\Cache\CacheRawBackendInterface::deleteAll()

3 methods override CacheRawBackendInterface::deleteMultiple()
ApcuRawBackend::deleteMultiple in src/Cache/ApcuRawBackend.php
Deletes multiple items from the cache.
ChainedFastRawBackend::deleteMultiple in src/Cache/ChainedFastRawBackend.php
Deletes multiple items from the cache.
DatabaseRawBackend::deleteMultiple in src/Cache/DatabaseRawBackend.php
Deletes multiple items from the cache.

File

src/Cache/CacheRawBackendInterface.php, line 135
Contains \Drupal\supercache\Cache\CacheRawBackendInterface.

Class

CacheRawBackendInterface
Defines an interface for cache implementations.

Namespace

Drupal\supercache\Cache

Code

public function deleteMultiple(array $cids);