CacheTransactions class final
Headless cache application API used by the CLI and Dart callers.
Constructors
-
CacheTransactions({required CacheWorkspaceRepository workspaces, CacheCleanupPlanRepository plans = const FileCacheCleanupPlanRepository(), List<
CacheDiagnosticProvider> ? diagnosticProviders, Map<String, String> ? environment, ProcessLiveness? liveness, CacheClock? clock})
Properties
-
diagnosticProviders
→ List<
CacheDiagnosticProvider> ? -
final
-
environment
→ Map<
String, String> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- liveness → ProcessLiveness
-
final
- plans → CacheCleanupPlanRepository
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- workspaces → CacheWorkspaceRepository
-
final
Methods
-
apply(
CacheWorkspaceRequest request, StorageCleanupPlan reviewed) → Future< StoragePruneResult> -
applySavedPlan(
String path) → Future< StoragePruneResult> -
discoverAndInspect(
CacheWorkspaceRequest workspaceRequest, CacheInspectRequest request) → Future< CacheInspectResult> - Explicitly discovers and remembers projects, then inspects the resulting workspace through the same measured transaction as plain inspect.
-
inspect(
CacheWorkspaceRequest workspaceRequest, CacheInspectRequest request) → Future< CacheInspectResult> -
inspectWorkspace(
CacheWorkspace workspace, CacheInspectRequest request) → Future< CacheInspectResult> - Inspects an already resolved workspace, including caller-composed storage sources or explicit discovery results, using one measurement snapshot.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
preview(
CacheWorkspace workspace, CacheCleanupRequest request) → Future< StoragePruneResult> -
savePlan(
String path, CacheWorkspace workspace, StoragePruneResult preview) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited