Table of Contents

NotableDateCacheWriteStatus Enum

Definition

Namespace
Bodu.Globalization.Calendar.Caching
Assembly
Bodu.Globalization.Calendar.Caching.dll
Package
Bodu.Globalization.Calendar.Caching 1.0.0
Source
NotableDateCacheWriteStatus.cs

Reports the outcome of an StoreYear(NotableDateCacheEntry, TimeSpan, DateTimeOffset) write, distinguishing a durable success from a swallowed storage failure and from a deliberate no-op cache.

public enum NotableDateCacheWriteStatus
Extension Methods

Fields

Stored = 0

The computed year was persisted; the entry is durable for the backend's lifetime.

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; the entry is not durable.

Remarks

The status exists so a caller can tell whether the computed year was 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 lookup of the same year recomputes rather than trusting a write that never landed.

Applies to

ProductVersions
.NET8, 10