reifydb_store_multi/flush/mod.rs
1// SPDX-License-Identifier: Apache-2.0
2// Copyright (c) 2026 ReifyDB
3
4//! Background flusher that migrates writes from the buffer tier to the persistent tier. Flush is the
5//! watermark-coupled eviction sweep: on each tick (or explicit request) it persists the latest-<=W value per key of
6//! every persistent object, then drops all <=W versions from the commit tier, bounding the commit tier's RAM.
7
8pub mod engine;
9
10use reifydb_core::interface::catalog::storage::StorageId;
11
12pub trait ObjectPersistence: Send + Sync + 'static {
13 fn is_persistent(&self, storage: StorageId) -> bool;
14}