Table of Contents

RateCacheWriteStatus Enum

Definition

Namespace
Bodu.Financial.ExchangeRates.Caching
Assembly
Bodu.Financial.ExchangeRates.Caching.dll
Package
Bodu.Financial.ExchangeRates.Caching 1.0.0
Source
RateCacheWriteStatus.cs

Reports the outcome of an atomic StoreFetchedRange(CurrencyPair, IReadOnlyList<CachedRate>, DateOnly, DateOnly, TimeSpan, DateTimeOffset) write, distinguishing a durable success from a swallowed storage failure and from a deliberate no-op cache.

public enum RateCacheWriteStatus
Extension Methods

Fields

Stored = 0

The rows and coverage window were persisted atomically; both halves are durable.

Skipped = 1

The cache intentionally stored nothing, as a no-op cache does; nothing was persisted and nothing was expected to be.

Failed = 2

A storage error was swallowed and nothing was persisted; neither the rows nor the coverage window are durable.

Remarks

The status exists so a caller - most notably the caching decorator - can tell whether the rows and coverage window were actually persisted. A Failed result signals that nothing was persisted (a backing-store error was swallowed to keep the cache best-effort), so a subsequent range lookup must refetch rather than trust the coverage; this closes the window in which a half-completed write left coverage recorded without its rows.

Applies to

ProductVersions
.NET8, 10