FileStepCache
Namespace: E2E
public sealed class FileStepCache : IStepCacheJSON files in a directory, one per cache key. Entries over 1 MiB are ignored.
Inheritance: object
Implements: IStepCache
Constructors
Section titled “Constructors”FileStepCache(string)
Section titled “FileStepCache(string)”public FileStepCache(string directory)Parameters
| Name | Type | Description |
|---|---|---|
directory |
string |
Fields
Section titled “Fields”SchemaVersion
Section titled “SchemaVersion”public const int SchemaVersion = 1Value: int
Methods
Section titled “Methods”Delete(string)
Section titled “Delete(string)”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 |
Read(string)
Section titled “Read(string)”public CacheLookup Read(string key)Parameters
| Name | Type | Description |
|---|---|---|
key |
string |
Returns: CacheLookup
Write(string, CacheEntry)
Section titled “Write(string, CacheEntry)”public void Write(string key, CacheEntry entry)Parameters
| Name | Type | Description |
|---|---|---|
key |
string | |
entry |
CacheEntry |