Skip to main content

Module backend

Module backend 

Source
Expand description

Pluggable L2 cache backend interfaces and built-in implementations.

A backend is scoped by BackendKeyspace, which Sassi constructs from crate::punnu::PunnuConfig::namespace and crate::Cacheable::cache_type_name. Backend implementations must treat that keyspace as the only namespace/type source of truth.

Structs§

BackendKeyspace
Namespace/type scope for backend storage and invalidation channels.
FileBackend
File-backed cache backend.
MemoryBackend
Separate in-memory backend that stores wire-envelope bytes.

Enums§

BackendInvalidation
Backend-driven invalidation message.

Traits§

CacheBackend
L2 cache backend for a single Cacheable payload type.

Type Aliases§

BackendInvalidationStream
Stream type used by CacheBackend::invalidation_stream.