use thiserror::Error;
#[derive(Debug, Error)]
pub enum DbCacheError {
#[error("database cached operation `{operation}` is missing an explicit cache key")]
MissingKey { operation: String },
#[error(transparent)]
Cache(#[from] hydracache::CacheError),
}
pub type Result<T> = std::result::Result<T, DbCacheError>;