CacheGraph 1.1.0

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

CacheGraph.Core

Core library for CacheGraph β€” cache-aside with dependency graph and cascade invalidation

This is the core library that provides the fundamental abstractions and implementations for CacheGraph. It contains the following components:

πŸ“ Structure

  • Interfaces/ β€” Public contracts for all components
  • Modelos/ β€” Data models and value types
  • Implementaciones/ β€” Built-in implementations
  • Utilidades/ β€” Helper utilities

🎯 Key Components

Cache Providers

  • IMemoryCacheProvider β€” Wrapper around IMemoryCache
  • MemoryCacheProvider β€” In-memory cache implementation
  • DistributedCacheProviderAdapter β€” Adapter for IDistributedCache

Graph Providers

  • IGraphProvider β€” Dependency graph abstraction
  • MemoryGraphProvider β€” In-memory graph implementation

Event Providers

  • IEventProvider β€” Event system abstraction
  • MemoryEventProvider β€” In-memory event provider

Lock Providers

  • IDistributedLock β€” Distributed lock abstraction
  • MemoryDistributedLock β€” In-memory lock implementation

Telemetry & Logging

  • ITelemetryProvider β€” Activity tracking
  • ICacheGraphLogger β€” Logging abstraction

Serialization

  • ICacheSerializer β€” Serialization abstraction
  • JsonCacheSerializer β€” JSON serializer implementation

πŸ“¦ Installation

dotnet add package CacheGraph.Core

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                      ICacheGraph                         β”‚
β”‚                   (main faΓ§ade)                           β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ ICache     β”‚ IGraph       β”‚ IDistributed β”‚ IEvent         β”‚
β”‚ Provider   β”‚ Provider     β”‚ Lock         β”‚ Provider       β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ ITelemetryProvider  β”‚  ICacheGraphLogger                 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ“Š Interfaces

Interface Purpose
ICacheGraph Main faΓ§ade β€” cache-aside, invalidation, graph queries
ICacheProvider Key-value storage (get, set, remove, exists)
IGraphProvider Dependency graph (nodes, edges, traversal)
IDistributedLock Distributed lock for stampede protection
IEventProvider Publish/subscribe event system
ITelemetryProvider Activity tracking and performance telemetry
ICacheGraphLogger Logging abstraction
ICacheSerializer Serialization for distributed cache adapters

πŸ“¦ Dependencies

  • Microsoft.Extensions.Logging (9.0.0)
  • Microsoft.Extensions.Logging.Abstractions (9.0.0)

πŸ§ͺ Testing

Run tests:

dotnet test

πŸ“„ License

MIT License β€” see LICENSE for details.

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

Showing the top 4 NuGet packages that depend on CacheGraph:

Package Downloads
CacheGraph.Extensions

Dependency Injection, Microsoft.Extensions.Logging, and IMemoryCache/IDistributedCache integration for CacheGraph

CacheGraph.Redis

Redis providers for CacheGraph β€” distributed cache, graph storage, distributed locks, and pub/sub event invalidation

CacheGraph.Attributes

Declarative attribute-based caching for CacheGraph via reflection-based proxies

CacheGraph.EntityFrameworkCore

Automatic query caching, economic thresholds, and cascade invalidation for Entity Framework Core via CacheGraph dependency graph

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0 69 8/21/2026
1.0.0 118 8/6/2026