use thiserror::Error;
#[derive(Debug, Error)]
pub enum CacheError {
#[error("Segment error: {0}")]
Segment(#[from] crate::segment::SegmentError),
#[error("Cache error: {0}")]
Internal(String),
}
pub type Result<T> = std::result::Result<T, CacheError>;