bool
Storage::put(const Digest& key,
const core::CacheEntryType type,
- const storage::CacheEntryWriter& entry_writer)
+ const storage::EntryWriter& entry_writer)
{
const auto path = m_primary_storage.put(key, type, entry_writer);
if (!path) {
bool put(const Digest& key,
core::CacheEntryType type,
- const storage::CacheEntryWriter& entry_writer);
+ const storage::EntryWriter& entry_writer);
void remove(const Digest& key, core::CacheEntryType type);
nonstd::optional<std::string>
PrimaryStorage::put(const Digest& key,
const core::CacheEntryType type,
- const storage::CacheEntryWriter& entry_writer)
+ const storage::EntryWriter& entry_writer)
{
const auto cache_file = look_up_cache_file(key, type);
switch (type) {
nonstd::optional<std::string> get(const Digest& key,
core::CacheEntryType type) const;
- nonstd::optional<std::string>
- put(const Digest& key,
- core::CacheEntryType type,
- const storage::CacheEntryWriter& entry_writer);
+ nonstd::optional<std::string> put(const Digest& key,
+ core::CacheEntryType type,
+ const storage::EntryWriter& entry_writer);
void remove(const Digest& key, core::CacheEntryType type);
namespace storage {
-using CacheEntryWriter = std::function<bool(const std::string& path)>;
+using EntryWriter = std::function<bool(const std::string& path)>;
} // namespace storage