From 6be59b53f1a2435596838e85a74cb6543fc584f3 Mon Sep 17 00:00:00 2001 From: flow Date: Sun, 21 Aug 2022 13:04:48 -0300 Subject: feat: add eternal cache entries Those are entries that don't get stale over time, so we don't invalidate them if they 'expire'. Signed-off-by: flow --- launcher/net/MetaCacheSink.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'launcher/net/MetaCacheSink.h') diff --git a/launcher/net/MetaCacheSink.h b/launcher/net/MetaCacheSink.h index c9f7edfe..f5948085 100644 --- a/launcher/net/MetaCacheSink.h +++ b/launcher/net/MetaCacheSink.h @@ -42,7 +42,7 @@ namespace Net { class MetaCacheSink : public FileSink { public: - MetaCacheSink(MetaEntryPtr entry, ChecksumValidator* md5sum); + MetaCacheSink(MetaEntryPtr entry, ChecksumValidator* md5sum, bool is_eternal = false); virtual ~MetaCacheSink() = default; auto hasLocalData() -> bool override; @@ -54,5 +54,6 @@ class MetaCacheSink : public FileSink { private: MetaEntryPtr m_entry; ChecksumValidator* m_md5Node; + bool m_is_eternal; }; } // namespace Net -- cgit