docs.rs failed to build cachet_service-0.2.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: cachet_service-0.2.8

Cachet Service

crate.io docs.rs MSRV CI Coverage License

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