Sylin.Koan.Cache.Adapter.Sqlite 1.0.0

dotnet add package Sylin.Koan.Cache.Adapter.Sqlite --version 1.0.0
                    
NuGet\Install-Package Sylin.Koan.Cache.Adapter.Sqlite -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Sylin.Koan.Cache.Adapter.Sqlite" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sylin.Koan.Cache.Adapter.Sqlite" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Sylin.Koan.Cache.Adapter.Sqlite" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Sylin.Koan.Cache.Adapter.Sqlite --version 1.0.0
                    
#r "nuget: Sylin.Koan.Cache.Adapter.Sqlite, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Sylin.Koan.Cache.Adapter.Sqlite@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Sylin.Koan.Cache.Adapter.Sqlite&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Sylin.Koan.Cache.Adapter.Sqlite&version=1.0.0
                    
Install as a Cake Tool

Sylin.Koan.Cache.Adapter.Sqlite

Persistent Local Cache provider for Koan, backed by SQLite. Reference it and keep the normal AddKoan() boot; SQLite automatically wins Local election over the built-in memory floor.

Install

dotnet add package Sylin.Koan.Cache.Adapter.Sqlite
builder.Services.AddKoan();

[Cacheable(300)]
public sealed class Todo : Entity<Todo> { }

No SQLite registration is required. The default database is .Koan/cache/cache.db.

Meaningful result

Run the application, save and read an Entity, then restart it. The elected Local cache remains queryable from the SQLite file without changing Entity code.

Configure only when needed

{
  "Koan": {
    "Cache": {
      "Adapters": {
        "Sqlite": {
          "DatabasePath": "./state/cache.db"
        }
      }
    }
  }
}

The provider supports exact case-insensitive tags, binary payloads, bounded stale serving, durable persistence, and real sliding expiration. Existing pre-1.0 databases are upgraded in place: the sliding-expiry column and normalized tag index are added, and legacy comma-delimited tags are migrated.

Guarantees and limits

SQLite is a Local tier: it persists across process restarts but is not a shared multi-node cache. Use it when one process needs durable local caching or offline-friendly behavior. Add a Remote adapter for a shared layer.

Boot reporting exposes the selected provider and database path. CacheHealthCheck performs a real sentinel write/read/remove against the selected tier.

See TECHNICAL.md for schema and migration behavior.

Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 34 8/14/2026
0.20.2 98 7/22/2026
0.20.1 157 7/22/2026
0.17.0 113 6/12/2026
0.8.0 108 5/16/2026