function DrushJSONCache::readFile

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

Overrides DrushFileCache::readFile

File

includes/cache.inc, line 432
Drush cache API

Class

DrushJSONCache
JSON cache storage backend.

Code

function readFile($filename) {
  $item = file_get_contents($filename);
  return $item ? (object) drush_json_decode($item) : FALSE;
}