function _drush_cache_is_empty

8.0.x cache.inc _drush_cache_is_empty($bin)
6.x cache.inc _drush_cache_is_empty($bin)
7.x cache.inc _drush_cache_is_empty($bin)
5.x cache.inc _drush_cache_is_empty($bin)
master cache.inc _drush_cache_is_empty($bin)

Check if a cache bin is empty.

A cache bin is considered empty if it does not contain any valid data for any cache ID.

Parameters

$bin: The cache bin to check.

Return value

TRUE if the cache bin specified is empty.

File

includes/cache.inc, line 161
Drush cache API

Code

function _drush_cache_is_empty($bin) {
  return _drush_cache_get_object($bin)->isEmpty();
}