Bodu.Globalization.Calendar.Caching.Sqlite
1.0.0
dotnet add package Bodu.Globalization.Calendar.Caching.Sqlite --version 1.0.0
NuGet\Install-Package Bodu.Globalization.Calendar.Caching.Sqlite -Version 1.0.0
<PackageReference Include="Bodu.Globalization.Calendar.Caching.Sqlite" Version="1.0.0" />
<PackageVersion Include="Bodu.Globalization.Calendar.Caching.Sqlite" Version="1.0.0" />
<PackageReference Include="Bodu.Globalization.Calendar.Caching.Sqlite" />
paket add Bodu.Globalization.Calendar.Caching.Sqlite --version 1.0.0
#r "nuget: Bodu.Globalization.Calendar.Caching.Sqlite, 1.0.0"
#:package Bodu.Globalization.Calendar.Caching.Sqlite@1.0.0
#addin nuget:?package=Bodu.Globalization.Calendar.Caching.Sqlite&version=1.0.0
#tool nuget:?package=Bodu.Globalization.Calendar.Caching.Sqlite&version=1.0.0
Bodu.Globalization.Calendar.Caching.Sqlite
API stability — Stable. The public API surface is committed; breaking changes are reserved for a major-version bump per SemVer.
A durable SQLite storage backend for the
Bodu.Globalization.Calendar.Caching
notable-date cache. SqliteNotableDateCache persists computed civil years in a SQLite database, so
a restarted process starts warm instead of recomputing every territory from scratch.
Backend selection and the full options surface are covered in Backends and options; the caching model itself is in Caching notable dates.
Installation
dotnet add package Bodu.Globalization.Calendar.Caching.Sqlite
Targets net8.0. All types live in the Bodu.Globalization.Calendar.Caching namespace, alongside
the other backends.
services.AddSqliteNotableDateCache(/* … */);
What it adds
| Type | Role |
|---|---|
SqliteNotableDateCache |
INotableDateCache over a SQLite database file |
SqliteNotableDateCacheOptions |
Connection and store configuration |
SqliteNotableDateCacheExtensions |
The AddSqliteNotableDateCache registration |
It is a storage backend only — the caching policy (per-year units, time-to-live plus
resource-version invalidation, single-flight cold misses, best-effort storage) lives in
CachingNotableDateService and is identical across every backend. Like the other shipped backends
it degrades gracefully: a failed read is treated as a miss and a failed write is skipped, so a
locked or unavailable database never breaks date resolution.
Choosing a backend
Use this package when the cache must survive process restarts on one machine. For a single
short-lived process the in-memory backend is enough; for a cache shared between instances, use
…Caching.Distributed
over any IDistributedCache (including Redis).
Part of the Bodu utility library.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Bodu.Core (>= 1.0.0)
- Bodu.Globalization.Calendar (>= 1.0.0)
- Bodu.Globalization.Calendar.Caching (>= 1.0.0)
- Microsoft.Data.Sqlite (>= 10.0.12)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.12)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Options (>= 10.0.12)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.12)
-
net8.0
- Bodu.Core (>= 1.0.0)
- Bodu.Globalization.Calendar (>= 1.0.0)
- Bodu.Globalization.Calendar.Caching (>= 1.0.0)
- Microsoft.Data.Sqlite (>= 8.0.31)
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 8.0.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.2)
- Microsoft.Extensions.Options (>= 8.0.2)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.