Skip to main content

Crate claviron_cache

Crate claviron_cache 

Source

Re-exports§

pub use self::config::CacheConfig;
pub use self::config::CacheConfig as CacheBootstrapConfig;
pub use self::config::FileCacheStoreConfig;
pub use self::error::Error;
pub use self::error::Result;

Modules§

config
error
memory
Typed process-local caching for synchronous callers.

Structs§

CacheEntry
CacheProvider
Reloadable runtime cache facade, and the owner of cache.yaml.
CacheRegistry
Registration-time extension point for cache drivers and stores.
CacheRepository
Driver-neutral operations for one named cache store.
FileCacheDriver
FileCacheStore
FillToken
A position on a store’s tag-invalidation clock, read before a backing read and given back to TaggedCacheStore::fill_tagged with its result.
ValueError

Enums§

ArchivedCacheJson
An archived CacheJson
CacheExpiry
Expiry observed with a backing value in the same read.
CacheJson
A language-neutral JSON-shaped cache tree.
CacheValue
Stable value envelope shared by cache frontends.
CacheValueRef
A validated read of a cache envelope, borrowing its immutable byte buffer.
Fill
What TaggedCacheStore::fill_tagged did with its value. Every variant but Fill::Kept leaves the store as it was, and none is an error: the value is still the right answer for the read that produced it.

Traits§

CacheDriver
Build-time factory for one cache backend family.
CacheStore
Raw storage contract implemented by cache backends.
CacheStoreResolver
Read-only view of the complete candidate store graph during composition.
TaggedCacheStore
Tagged writes, fenced fills and invalidation by tag for a store that supports them.

Functions§

register
Compose the cache: the registry, the provider that owns cache.yaml, and the built-in drivers. Congif prepares the file before boot; the sealing configure builds stores from the registered drivers. Without the file, the catalog starts with the built-in memory store. The Orbit cache service can serve Orbit stores declared by a later configuration.
register_with_config
Supply the existing cache schema from an enclosing launch document. Driver construction and sealing remain lifecycle work, after all application registrations. This immutable boot intent does not read or watch cache.yaml. Redis connections are not part of it: a host that supplies them calls register_redis_with_config first; otherwise the Redis provider owns redis.yaml.

Type Aliases§

ValueResult