aboutsummaryrefslogtreecommitdiff
path: root/zenserver/cache/structuredcachestore.h
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-11-01 10:32:15 +0100
committerMartin Ridgers <[email protected]>2021-11-01 10:32:15 +0100
commit89bfb07a3f794b6a4d53cb442ea6f8fd021bbd3a (patch)
tree825bd1b0ec25feac76ff7e02c9d7fa559e656625 /zenserver/cache/structuredcachestore.h
parentFixed up some assumptions that satd::fs::path uses wchar_t (diff)
parentMinor cleanup (diff)
downloadzen-89bfb07a3f794b6a4d53cb442ea6f8fd021bbd3a.tar.xz
zen-89bfb07a3f794b6a4d53cb442ea6f8fd021bbd3a.zip
Merged main
Diffstat (limited to 'zenserver/cache/structuredcachestore.h')
-rw-r--r--zenserver/cache/structuredcachestore.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/zenserver/cache/structuredcachestore.h b/zenserver/cache/structuredcachestore.h
index 12a11d912..ac5642a21 100644
--- a/zenserver/cache/structuredcachestore.h
+++ b/zenserver/cache/structuredcachestore.h
@@ -100,7 +100,7 @@ private:
class ZenCacheDiskLayer
{
public:
- ZenCacheDiskLayer(CasStore& Cas, const std::filesystem::path& RootDir);
+ explicit ZenCacheDiskLayer(const std::filesystem::path& RootDir);
~ZenCacheDiskLayer();
bool Get(std::string_view Bucket, const IoHash& HashKey, ZenCacheValue& OutValue);
@@ -120,7 +120,6 @@ private:
{
};
- CasStore& m_CasStore;
std::filesystem::path m_RootDir;
RwLock m_Lock;
std::unordered_map<std::string, CacheBucket> m_Buckets; // TODO: make this case insensitive
@@ -129,7 +128,7 @@ private:
class ZenCacheStore
{
public:
- ZenCacheStore(CasStore& Cas, const std::filesystem::path& RootDir);
+ explicit ZenCacheStore(const std::filesystem::path& RootDir);
~ZenCacheStore();
bool Get(std::string_view Bucket, const IoHash& HashKey, ZenCacheValue& OutValue);
@@ -147,4 +146,6 @@ private:
uint64_t m_LastScrubTime = 0;
};
+void z$_forcelink();
+
} // namespace zen