function DrushJSONCache::writeFile

6.x cache.inc DrushJSONCache::writeFile($filename, $cache)
5.x cache.inc DrushJSONCache::writeFile($filename, $cache)

Overrides DrushFileCache::writeFile

File

includes/cache.inc, line 436
Drush cache API

Class

DrushJSONCache
JSON cache storage backend.

Code

function writeFile($filename, $cache) {
  return file_put_contents($filename, drush_json_encode($cache));
}