Skip to content

FileStepCache

Namespace: E2E

public sealed class FileStepCache : IStepCache

JSON files in a directory, one per cache key. Entries over 1 MiB are ignored.

Inheritance: object

Implements: IStepCache

View source

public FileStepCache(string directory)

Parameters

Name Type Description
directory string

View source

public const int SchemaVersion = 1

Value: int

View source

public void Delete(string key)

Returns when the entry is absent; throws when deletion fails, so the best-effort caller can avoid reporting a successful eviction.

Parameters

Name Type Description
key string

View source

public CacheLookup Read(string key)

Parameters

Name Type Description
key string

Returns: CacheLookup

View source

public void Write(string key, CacheEntry entry)

Parameters

Name Type Description
key string
entry CacheEntry

View source