From 15668119de40b97011a1f2e2d065d11f25a5833a Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 7 Jun 2019 12:46:49 +0300 Subject: make LRU_CAP configurable for batch db --- crates/ra_db/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates/ra_db') diff --git a/crates/ra_db/src/lib.rs b/crates/ra_db/src/lib.rs index 7c49c585b..f08616100 100644 --- a/crates/ra_db/src/lib.rs +++ b/crates/ra_db/src/lib.rs @@ -65,6 +65,8 @@ pub struct FileRange { pub range: TextRange, } +pub const DEFAULT_LRU_CAP: usize = 128; + /// Database which stores all significant input facts: source code and project /// model. Everything else in rust-analyzer is derived from these queries. #[salsa::query_group(SourceDatabaseStorage)] -- cgit v1.2.3