Cache/Adapters/FileFormats/GenericCache.php
/**
   * Reads a resource from the cache
   * 
   * @param string $cacheFilePath
   * @return string|bool false if unreadable
   */
Reads a resource from the cache

@param string $cacheFilePath
@return string|bool false if unreadable
Reads a resource from the cache @param string $cacheFilePath @return string|bool false if unreadable
public static function read($cacheFilePath) {
    if (!is_readable($cacheFilePath)) {
      return false;
    }
    $expirationCallback = function() use ($cacheFilePath) {
      self::delete($cacheFilePath);
    };
    $data = json_decode(file_get_contents($cacheFilePath), true);
    return self::getContent($data, $expirationCallback);
  }
public static function read ( $ cacheFilePath ) { if ( ! is_readable ( $ cacheFilePath ) ) { return false ; } $ expirationCallback = function ( ) use ( $ cacheFilePath ) { self :: delete ( $ cacheFilePath ) ; } ; $ data = json_decode ( file_get_contents ( $ cacheFilePath ) , true ) ; return self :: getContent ( $ data , $ expirationCallback ) ; }
Reads a resource from the cache
Reads a resource from the cache