From adb42959a373f9084456cfaef665a07f27dd75f3 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sun, 12 May 2024 19:34:53 +0200 Subject: feat(tvix/store/pathinfo): add a Cache combinator This allows querying two PathInfoService implementations sequentially, and inserts into the "near" one if it's not there yet. There is no negative cache, and put / listing is not implemented (for now). Change-Id: I24c3d0e0c3c2f0524a6cc7b2f3cbc33eb20cf92b Reviewed-on: https://cl.tvl.fyi/c/depot/+/11636 Autosubmit: flokli Tested-by: BuildkiteCI Reviewed-by: Connor Brewster --- tvix/store/src/pathinfoservice/mod.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tvix/store/src/pathinfoservice/mod.rs') diff --git a/tvix/store/src/pathinfoservice/mod.rs b/tvix/store/src/pathinfoservice/mod.rs index 5f5da2bff296..574bcc0b8b88 100644 --- a/tvix/store/src/pathinfoservice/mod.rs +++ b/tvix/store/src/pathinfoservice/mod.rs @@ -1,3 +1,4 @@ +mod combinators; mod from_addr; mod grpc; mod lru; @@ -17,6 +18,7 @@ use tvix_castore::Error; use crate::proto::PathInfo; +pub use self::combinators::Cache as CachePathInfoService; pub use self::from_addr::from_addr; pub use self::grpc::GRPCPathInfoService; pub use self::lru::LruPathInfoService; -- cgit 1.4.1