diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-03-18 15:14:23 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-03-18 15:14:23 +0100 |
commit | c5ec95e2c70d15935d02216852bbc22f87f4f5ed (patch) | |
tree | 4e25ab87740448c9014a8e85a0a9c7b6671d1ea1 /src/libstore/fetchers/cache.hh | |
parent | 1b494798360cca30971b43adda5baa154bf1991e (diff) |
tarball.cc: Use ETags
Diffstat (limited to 'src/libstore/fetchers/cache.hh')
-rw-r--r-- | src/libstore/fetchers/cache.hh | 11 |
1 files changed, 11 insertions, 0 deletions
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<std::pair<Attrs, StorePath>> lookup( ref<Store> store, const Attrs & inAttrs) = 0; + + struct Result + { + bool expired = false; + Attrs infoAttrs; + StorePath storePath; + }; + + virtual std::optional<Result> lookupExpired( + ref<Store> store, + const Attrs & inAttrs) = 0; }; ref<Cache> getCache(); |