function DrushFileCache::isEmpty

6.x cache.inc DrushFileCache::isEmpty()
5.x cache.inc DrushFileCache::isEmpty()

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.

Return value

TRUE if the cache bin specified is empty.

Overrides DrushCacheInterface::isEmpty

File

includes/cache.inc, line 408
Drush cache API

Class

DrushFileCache
Default cache implementation.

Code

function isEmpty() {
  $files = drush_scan_directory($dir, "//", array('.', '..'));
  return empty($files);
}