2017-04-09 02:24:32 +00:00
|
|
|
#pragma once
|
|
|
|
|
2017-04-21 06:32:18 +00:00
|
|
|
#include <optional.h>
|
2017-04-09 02:24:32 +00:00
|
|
|
#include <memory>
|
|
|
|
#include <string>
|
|
|
|
|
2017-04-21 06:32:18 +00:00
|
|
|
using std::experimental::nullopt;
|
2017-09-22 01:14:57 +00:00
|
|
|
using std::experimental::optional;
|
2017-04-21 06:32:18 +00:00
|
|
|
|
2017-05-21 19:51:15 +00:00
|
|
|
struct Config;
|
2017-05-12 06:08:15 +00:00
|
|
|
struct IndexFile;
|
2017-04-09 02:24:32 +00:00
|
|
|
|
2017-05-21 19:51:15 +00:00
|
|
|
std::unique_ptr<IndexFile> LoadCachedIndex(Config* config,
|
2017-05-12 06:08:15 +00:00
|
|
|
const std::string& filename);
|
2017-04-21 06:32:18 +00:00
|
|
|
|
2017-05-21 19:51:15 +00:00
|
|
|
optional<std::string> LoadCachedFileContents(Config* config,
|
2017-04-22 07:42:57 +00:00
|
|
|
const std::string& filename);
|
2017-04-09 02:24:32 +00:00
|
|
|
|
2017-09-22 01:14:57 +00:00
|
|
|
void WriteToCache(Config* config, IndexFile& file);
|