Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 2.42 KB

File metadata and controls

51 lines (36 loc) · 2.42 KB
Cachet Service Logo

Cachet Service

crate.io docs.rs MSRV CI Coverage License This crate was developed as part of the Oxidizer project

Service pattern integration for cache backends.

This crate provides ServiceAdapter to convert any Service<CacheOperation> into a CacheTier, enabling service middleware composition (retry, timeout, circuit breaker) for cache storage backends.

Overview

The adapter provides bidirectional integration:

  • Service → Cache: Use ServiceAdapter to wrap services as cache tiers
  • Cache → Service: The main cachet::Cache implements Service<CacheOperation>

Quick Start

// Any Service<CacheOperation> can become a cache tier
let tier = ServiceAdapter::new(my_service);

Use Cases

  • Remote caches: Wrap Redis, Memcached, or custom services as cache tiers
  • Middleware composition: Add retry, timeout, or circuit breaker before caching
  • Unified abstractions: Use the same service patterns for caching and other I/O

This crate was developed as part of The Oxidizer Project. Browse this crate's source code.