Skip to content

Commit de359e3

Browse files
Create TTL map with time wheel architecture
This change adds a DashMap-like struct which has a background tasks to clean up entries that have outlived a configurable TTL. This struct is simliar to https://github.com/moka-rs/moka, which also uses time wheels. Having our own module avoids introducing a large dependency, which keeps this project closer to vanilla datafusion. This change is meant to be useful for #89, where it's possible for `ExecutionStages` to be orphaned in `ArrowFlightEndpoint`. We need an async task to clean up old entries. Informs: #90
1 parent 0dbf427 commit de359e3

File tree

3 files changed

+502
-1
lines changed

3 files changed

+502
-1
lines changed

src/common/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
pub mod ttl_map;
12
pub mod util;

0 commit comments

Comments
 (0)