public function ApcuRawBackend::delete in Supercache 8
Same name and namespace in other branches
- 2.0.x src/Cache/ApcuRawBackend.php \Drupal\supercache\Cache\ApcuRawBackend::delete()
Deletes an item from the cache.
If the cache item is being deleted because it is no longer "fresh", you may consider using invalidate() instead. This allows callers to retrieve the invalid item 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
string $cid: The cache ID to delete.
Overrides CacheRawBackendInterface::delete
See also
\Drupal\Core\Cache\CacheRawBackendInterface::deleteMultiple()
\Drupal\Core\Cache\CacheRawBackendInterface::deleteAll()
File
- src/
Cache/ ApcuRawBackend.php, line 202 - Contains \Drupal\supercache\Cache\ApcuRawBackend.
Class
- ApcuRawBackend
- Stores cache items in the Alternative PHP Cache User Cache (APCu).
Namespace
Drupal\supercache\CacheCode
public function delete($cid) {
apcu_delete($this
->getApcuKey($cid));
}