make LRU_CAP configurable for batch db

This commit is contained in:
Aleksey Kladov 2019-06-07 12:46:49 +03:00
parent fc2658b074
commit 15668119de
3 changed files with 11 additions and 4 deletions

View file

@ -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)]