Sylin.Koan.Cache.Abstractions 0.20.2

dotnet add package Sylin.Koan.Cache.Abstractions --version 0.20.2
                    
NuGet\Install-Package Sylin.Koan.Cache.Abstractions -Version 0.20.2
                    
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.Abstractions" Version="0.20.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sylin.Koan.Cache.Abstractions" Version="0.20.2" />
                    
Directory.Packages.props
<PackageReference Include="Sylin.Koan.Cache.Abstractions" />
                    
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.Abstractions --version 0.20.2
                    
#r "nuget: Sylin.Koan.Cache.Abstractions, 0.20.2"
                    
#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.Abstractions@0.20.2
                    
#: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.Abstractions&version=0.20.2
                    
Install as a Cake Addin
#tool nuget:?package=Sylin.Koan.Cache.Abstractions&version=0.20.2
                    
Install as a Cake Tool

Sylin.Koan.Cache.Abstractions

Contracts for Koan Cache policies, entry builders, values, stores, and capability negotiation. Reference this package when implementing a Cache provider or a module that describes cache intent without activating the Cache runtime.

Install

dotnet add package Sylin.Koan.Cache.Abstractions

Applications normally install Sylin.Koan.Cache or a functional adapter instead.

Meaningful result

public sealed class AcmeCacheStore : ICacheStore
{
    public string Name => "acme";
    public CacheStorePlacement Placement => CacheStorePlacement.Remote;

    public void Describe(ICapabilities caps)
        => caps.Add(CacheCaps.Tags)
            .Add(CacheCaps.BinaryPayload);

    // Implement Fetch, Set, Remove, Touch, Exists, and EnumerateByTag.
}

Register the provider through standard .NET DI as IEnumerable<ICacheStore>:

services.TryAddEnumerable(
    ServiceDescriptor.Singleton<ICacheStore, AcmeCacheStore>());

Use [ProviderPriority] only when automatic election should prefer this store over another candidate in the same placement. Cache compiles election once; registration order never decides.

Guarantees and boundaries

  • This package contains no KoanModule; referencing it alone performs no registration or I/O.
  • CacheStorePlacement describes topology. CacheCaps describes provider guarantees. A provider name implies neither.
  • Declare only capabilities the implementation actually honors. Runtime operations fail loudly when a selected provider cannot satisfy the requested semantic.
  • AllowStaleFor means bounded stale serving; it does not imply background revalidation.
  • Policy tier is application intent. Host-wide provider election belongs to Sylin.Koan.Cache.

See TECHNICAL.md for provider-author rules.

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 (7)

Showing the top 5 NuGet packages that depend on Sylin.Koan.Cache.Abstractions:

Package Downloads
Sylin.Koan.Data.Core

Entity data runtime for Koan: provider election, routing, lifecycle, queries, paging, relationships, and canonical operations.

Sylin.Koan.Cache

Koan Cache: transparent Entity caching, policy and topology negotiation, bounded explicit eviction, coherence, health, and inspection.

Sylin.Koan.Cache.Adapter.Sqlite

SQLite-backed persistent L1 cache store for Koan.Cache. Provides on-disk cache persistence with tag indexing and TTL eviction. Preempts the default Memory store by ProviderPriority.

Sylin.Koan.Web.OpenGraph

Host-owned Entity social-card projection and automatic OpenGraph/Twitter metadata injection for Koan SPA shells.

Sylin.Koan.Cache.Coherence.Messaging

Cache coherence over Koan.Messaging — alternative to Redis pub/sub when an app already has a messaging bus configured. Rides existing infrastructure; preempts the Redis pub/sub channel via [ProviderPriority(150)] when both are registered.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.20.2 1,579 7/22/2026
0.20.1 462 7/21/2026
0.17.0 836 6/12/2026
0.8.0 778 5/16/2026