Module response_cache

Module response_cache 

Source
Expand description

Response Cache Module

This module provides intelligent response caching with TTL (Time To Live) functionality for OpenAI API responses. Following the “Thin Client, Rich API” principle, this module offers configurable caching strategies without automatic behaviors.

This module is feature-gated behind the caching feature flag.

Modules§

exposed
Exposed namespace of the module.
orphan
Orphan namespace of the module.
own
Own namespace of the module.
prelude
Prelude to use essentials: use my_module ::prelude :: *.

Structs§

CacheConfig
Configuration for response caching behavior
CacheEntry
Cached response entry with metadata
CacheKey
Cache key generation and management
CacheStatistics
Cache statistics for monitoring and analysis
CachedClient
Cache-aware HTTP client wrapper
ResponseCache
Advanced response cache with TTL and intelligent management