File tree 1 file changed +7
-2
lines changed
quickwit/quickwit-search/src 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,6 @@ use crate::ClusterClient;
38
38
39
39
/// Maximum number of values in the local search KV store.
40
40
///
41
- /// Currently this store is only used for caching scroll contexts.
42
- ///
43
41
/// TODO make configurable.
44
42
///
45
43
/// Assuming a search context of 1MB, this can
@@ -128,6 +126,13 @@ struct TrackedValue {
128
126
_total_size_metric_guard : GaugeGuard < ' static > ,
129
127
}
130
128
129
+ /// In memory key value store with TTL and limited size.
130
+ ///
131
+ /// Once the capacity [LOCAL_KV_CACHE_SIZE] is reached, the oldest entries are
132
+ /// removed.
133
+ ///
134
+ /// Currently this store is only used for caching scroll contexts. Using it for
135
+ /// other purposes is risky as use cases would compete for its capacity.
131
136
#[ derive( Clone ) ]
132
137
pub ( crate ) struct MiniKV {
133
138
ttl_with_cache : Arc < RwLock < TtlCache < Vec < u8 > , TrackedValue > > > ,
You can’t perform that action at this time.
0 commit comments