1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
// Copyright 2021 TiKV Project Authors. Licensed under Apache-2.0.

use crate::errors::Result;

#[derive(Debug, Default)]
pub struct TtlProperties {
    pub max_expire_ts: u64,
    pub min_expire_ts: u64,
}

pub trait TtlPropertiesExt {
    fn get_range_ttl_properties_cf(
        &self,
        cf: &str,
        start_key: &[u8],
        end_key: &[u8],
    ) -> Result<Vec<(String, TtlProperties)>>;
}