CubeCacheManager class final

Saves, restores and clears a cube's cache directories.

Constructors

CubeCacheManager(ExecutionEnv _env, CubeSpec spec)
Creates a manager operating on env under the cache policy of spec.

Properties

cacheKey → String
The content-addressed cache key (cubeSpecCacheKey of the spec).
no setter
cacheRoot → String
The cache directory for this spec: <cwd>/.fah/cube-cache/<key>.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
spec → CubeSpec
The cube spec whose cache (and workspace, for path mapping) applies.
final

Methods

clear() → Future<void>
Removes this spec's whole cache entry.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
restoreIfNeeded() → Future<void>
Restores the cached trees into their live locations when a fresh cache exists, it is not expired, and CubeCachePolicy.restore is on.
save() → Future<void>
Snapshots the live cache paths into the cache root and writes a fresh manifest.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited