Cache/Adapters/FileCacheNativeFormatAbstract.php
/**
   * Writes a resource to the cache, paths will be created if applicable
   * 
   * @param type $cacheFilePath
   * @param mixed $data
   * @param mixed $duration can be a number of seconds or any argument accepted by strtotime()
   * @return int
   */
Writes a resource to the cache, paths will be created if applicable

@param type $cacheFilePath
@param mixed $data
@param mixed $duration can be a number of seconds or any argument accepted by strtotime()
@return int
Writes a resource to the cache paths will be created if applicable @param type $cacheFilePath @param mixed $data @param mixed $duration can be a number of seconds or any argument accepted by strtotime () @return int
public static function write($cacheFilePath, $data, $duration = 0) {
    $dataArray = self::getDataArray($data, $duration);
    return self::save(
      $cacheFilePath, 
      sprintf(
        static::$commentFormat . "\n", 
        $dataArray['expires']
      ) . $dataArray['content']
    );
  }
public static function write ( $ cacheFilePath , $ data , $ duration = 0 ) { $ dataArray = self :: getDataArray ( $ data , $ duration ) ; return self :: save ( $ cacheFilePath , sprintf ( static :: $ commentFormat . " \n " , $ dataArray [ 'expires' ] ) . $ dataArray [ 'content' ] ) ; }
Writes a resource to the cache, paths will be created if applicable
Writes a resource to the cache paths will be created if applicable