Class CompiledCacheLookup
Namespace: DotBoxD.Kernels.Compiler
Assembly: DotBoxD.Kernels.Compiler.dll
Describes the result of reading a compiled artifact from the persistent cache.
public sealed record CompiledCacheLookup : IEquatable<CompiledCacheLookup>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”IEquatable<CompiledCacheLookup>
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Remarks
Section titled “Remarks”A DotBoxD.Kernels.Compiler.CompiledCacheStatus.Hit result must include an artifact and cannot include an invalid reason.
DotBoxD.Kernels.Compiler.CompiledCacheStatus.Miss and DotBoxD.Kernels.Compiler.CompiledCacheStatus.Invalid results cannot include
an artifact. Only an invalid result can include an invalid reason, and invalid results must include one.
Constructors
Section titled “Constructors”CompiledCacheLookup(CompiledCacheStatus, CompiledArtifact?, string?)
Section titled “ CompiledCacheLookup(CompiledCacheStatus, CompiledArtifact?, string?)”Describes the result of reading a compiled artifact from the persistent cache.
public CompiledCacheLookup(CompiledCacheStatus Status, CompiledArtifact? Artifact, string? InvalidReason = null)Parameters
Section titled “Parameters”Status CompiledCacheStatus
Artifact CompiledArtifact?
InvalidReason string?
Remarks
Section titled “Remarks”A DotBoxD.Kernels.Compiler.CompiledCacheStatus.Hit result must include an artifact and cannot include an invalid reason.
DotBoxD.Kernels.Compiler.CompiledCacheStatus.Miss and DotBoxD.Kernels.Compiler.CompiledCacheStatus.Invalid results cannot include
an artifact. Only an invalid result can include an invalid reason, and invalid results must include one.
Properties
Section titled “Properties”Artifact
Section titled “ Artifact”Gets the cached artifact. Cache hits require an artifact; misses and invalid entries cannot include one.
public CompiledArtifact? Artifact { get; init; }Property Value
Section titled “Property Value”InvalidReason
Section titled “ InvalidReason”Gets the invalid-cache diagnostic. Only invalid entries can include this value, and they must include it.
public string? InvalidReason { get; init; }Property Value
Section titled “Property Value”Status
Section titled “ Status”Gets the cache lookup state. Only hit, miss, and invalid are valid lookup states.
public CompiledCacheStatus Status { get; init; }