//! Typed process-local caching for synchronous callers.
use Hash;
use Duration;
pub use Cache as MemoryCache;
/// Longest fixed TTL [`new`] accepts; Moka's builder rejects a longer one.
pub const MAX_TTL: Duration = from_secs;
/// Construct a bounded cache with a fixed time to live.
///
/// # Panics
///
/// Panics if `ttl` exceeds [`MAX_TTL`].