CubeCachePolicy class final
The spec.cache: section of a cube.
Constructors
-
CubeCachePolicy({bool enabled = false, List<
String> paths = const [], bool restore = true, Duration? ttl}) -
Creates a policy.
const
- CubeCachePolicy.fromYaml(Object? node)
-
Parses the
spec.cache:section.null(section absent) yields the disabled default.factory
Properties
- enabled → bool
-
Whether caching applies to runs of this cube.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
paths
→ List<
String> -
Cube-relative cache directory paths.
final
- restore → bool
-
Whether caches are restored into a fresh sandbox before the run.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- ttl → Duration?
-
Cache entry lifetime;
null= no expiry.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited