function CacheInterface::clear

8.0.x CacheInterface.php CacheInterface::clear($cid = NULL, $wildcard = FALSE)
7.x CacheInterface.php CacheInterface::clear($cid = NULL, $wildcard = FALSE)
master CacheInterface.php CacheInterface::clear($cid = NULL, $wildcard = FALSE)

Expire data from the cache. If called without arguments, expirable entries will be cleared from all known cache bins.

Parameters

string $cid: If set, the cache ID to delete. Otherwise, all cache entries that can expire are deleted.

bool $wildcard: If set to TRUE, the $cid is treated as a substring to match rather than a complete ID. The match is a right hand match. If '*' is given as $cid, the bin $bin will be emptied.

1 method overrides CacheInterface::clear()
FileCache::clear in lib/Drush/Cache/FileCache.php
Expire data from the cache. If called without arguments, expirable entries will be cleared from all known cache bins.

File

lib/Drush/Cache/CacheInterface.php, line 100
Definition of Drush\Cache\CacheInterface.

Namespace

Drush\Cache

Class

CacheInterface
Interface for cache implementations.

Code

function clear($cid = NULL, $wildcard = FALSE);