From c5ec95e2c70d15935d02216852bbc22f87f4f5ed Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 18 Mar 2020 15:14:23 +0100 Subject: tarball.cc: Use ETags --- src/libstore/fetchers/cache.hh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/libstore/fetchers/cache.hh') diff --git a/src/libstore/fetchers/cache.hh b/src/libstore/fetchers/cache.hh index ba2d30629..a25b05985 100644 --- a/src/libstore/fetchers/cache.hh +++ b/src/libstore/fetchers/cache.hh @@ -17,6 +17,17 @@ struct Cache virtual std::optional> lookup( ref store, const Attrs & inAttrs) = 0; + + struct Result + { + bool expired = false; + Attrs infoAttrs; + StorePath storePath; + }; + + virtual std::optional lookupExpired( + ref store, + const Attrs & inAttrs) = 0; }; ref getCache(); -- cgit v1.2.3