Skip to main content

Module cache

Module cache 

Source
Expand description

WorkspaceCache — L2 cache interface for session workspace state.

This module defines the WorkspaceCache trait, supporting types, and the NoOpCache implementation that satisfies the trait with no-op behaviour. The trait is the seam used by multi-pod deployments to share workspace snapshots across replicas via an external store (e.g. Valkey/Redis).

Available implementations are NoOpCache (single-pod / local dev) and ValkeyCache (production multi-pod, behind the valkey feature). For single-pod deployments (and tests), NoOpCache is the default.

Structs§

NoOpCache
A WorkspaceCache implementation that does nothing.
WorkspaceSnapshot
A serializable point-in-time snapshot of a session workspace’s metadata.

Enums§

CachedOverlayEntry
A file-level cache entry mirroring OverlayEntry.

Traits§

WorkspaceCache
L2 cache interface for workspace state across pods.