Skip to main content

Module cache

Module cache 

Source
Expand description

In-memory caching decorator for SashikoApi.

Wraps any Arc<dyn SashikoApi> with TTL-based caching per endpoint. Each cached response is stored with an insertion timestamp and served from memory if the TTL has not expired. clear_cache() invalidates all entries (used by Refresh/Ctrl-r).

Structsยง

CacheEntry ๐Ÿ”’
A cached value with insertion timestamp.
CachingClient
In-memory caching decorator for SashikoApi.