protected function putData($file, $path, $data) {
		fseek($file, self::DATA_OFFSET);
		
		if (fwrite($file, serialize($data)) === false) {
			fclose($file);
			throw new OperationFailed('Unable to puth the cache content to: ' . $path);
		}
		
		ftruncate($file, ftell($file));
		fclose($file);
	}