Table of Contents

Class PersistentCompiledArtifactCache

Namespace
DotBoxD.Kernels.Compiler
Assembly
DotBoxD.Kernels.Compiler.dll
public sealed class PersistentCompiledArtifactCache
Inheritance
PersistentCompiledArtifactCache
Inherited Members

Constructors

PersistentCompiledArtifactCache(string)

public PersistentCompiledArtifactCache(string rootDirectory)

Parameters

rootDirectory string

Methods

EntryExists(string)

public bool EntryExists(string cacheKey)

Parameters

cacheKey string

Returns

bool

EntryPath(string)

public string EntryPath(string cacheKey)

Parameters

cacheKey string

Returns

string

TryReadAsync(string, ExecutionPlan, string, IGeneratedAssemblyVerifier, VerificationPolicy, CancellationToken)

public ValueTask<CompiledCacheLookup> TryReadAsync(string cacheKey, ExecutionPlan plan, string entrypoint, IGeneratedAssemblyVerifier verifier, VerificationPolicy policy, CancellationToken cancellationToken)

Parameters

cacheKey string
plan ExecutionPlan
entrypoint string
verifier IGeneratedAssemblyVerifier
policy VerificationPolicy
cancellationToken CancellationToken

Returns

ValueTask<CompiledCacheLookup>

WriteAsync(string, ExecutionPlan, string, byte[], ArtifactManifest, VerificationResult, VerificationPolicy, CancellationToken)

public ValueTask WriteAsync(string cacheKey, ExecutionPlan plan, string entrypoint, byte[] assemblyBytes, ArtifactManifest manifest, VerificationResult verification, VerificationPolicy policy, CancellationToken cancellationToken)

Parameters

cacheKey string
plan ExecutionPlan
entrypoint string
assemblyBytes byte[]
manifest ArtifactManifest
verification VerificationResult
policy VerificationPolicy
cancellationToken CancellationToken

Returns

ValueTask