cachet 0.3.0

A composable, customizable multi-tier caching library with rich feature support.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

//! Serialization codecs for converting typed values to/from bytes.
//!
//! Values are serialized using [postcard] with a format version byte prefix,
//! producing [`BytesView`] outputs backed by thread-local memory pools.
//!
//! When a cached value cannot be decoded (e.g., format version mismatch or
//! corrupt bytes), the codec returns `DecodeOutcome::SoftFailure(reason)` to
//! treat it as a cache miss rather than a hard error.
//!
//! [postcard]: https://docs.rs/postcard
//! [`BytesView`]: bytesbuf::BytesView

pub(crate) mod codec;