Skip to main content

Crate hydracache_core

Crate hydracache_core 

Source
Expand description

Core types for HydraCache.

This crate intentionally contains no database adapter and no distributed runtime. It defines the small set of types shared by the v0 local cache.

Structs§

CacheDiagnostics
User-facing diagnostic snapshot for a local cache instance.
CacheEvent
Metadata-only cache event.
CacheEventOptions
Subscription filters for cache events.
CacheKey
A logical cache key.
CacheKeyBuilder
Builder for cache keys made of escaped :-separated segments.
CacheOptions
Per-entry cache behavior.
CacheStats
Snapshot of lightweight cache counters.
PostcardCodec
Default compact binary codec for v0.
TagSet
A reusable set of cache invalidation tags.

Enums§

CacheError
Errors returned by HydraCache.
CacheEventKind
Kind of cache event emitted by a HydraCache runtime.
CacheEventOrigin
Origin of a cache event.
CacheEventScope
Logical scope affected by a cache event.
CacheEventValueMode
Value payload mode requested by event subscribers.

Traits§

CacheCodec
Serialization boundary for cached values.

Type Aliases§

Result
HydraCache result type.