public function flushAll()
    {
        $mask = '*' . self::CACHE_FILE_SUFFIX;

        foreach (glob($this->basePath . $mask) as $cacheFilePath) {
            if (!unlink($cacheFilePath)) {
                throw new \RuntimeException("Failed to delete cache file '{$cacheFilePath}'.");
            }
        }
    }
public function flushAll()
    {
        $mask = '*' . self::CACHE_FILE_SUFFIX;

        foreach (glob($this->basePath . $mask) as $cacheFilePath) {
            if (!unlink($cacheFilePath)) {
                throw new \RuntimeException("Failed to delete cache file '{$cacheFilePath}'.");
            }
        }
    }
public function flushAll ( ) { $ mask = '*' . self :: CACHE_FILE_SUFFIX ; foreach ( glob ( $ this -> basePath . $ mask ) as $ cacheFilePath ) { if ( ! unlink ( $ cacheFilePath ) ) { throw new \ RuntimeException ( "Failed to delete cache file '{$cacheFilePath}'." ) ; } } }
Deletes every cache file.

@return void
@throws \RuntimeException
Deletes every cache file .