CacheGraph 1.1.0
dotnet add package CacheGraph --version 1.1.0
NuGet\Install-Package CacheGraph -Version 1.1.0
<PackageReference Include="CacheGraph" Version="1.1.0" />
<PackageVersion Include="CacheGraph" Version="1.1.0" />
<PackageReference Include="CacheGraph" />
paket add CacheGraph --version 1.1.0
#r "nuget: CacheGraph, 1.1.0"
#:package CacheGraph@1.1.0
#addin nuget:?package=CacheGraph&version=1.1.0
#tool nuget:?package=CacheGraph&version=1.1.0
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 aroundIMemoryCacheMemoryCacheProviderβ In-memory cache implementationDistributedCacheProviderAdapterβ Adapter forIDistributedCache
Graph Providers
IGraphProviderβ Dependency graph abstractionMemoryGraphProviderβ In-memory graph implementation
Event Providers
IEventProviderβ Event system abstractionMemoryEventProviderβ In-memory event provider
Lock Providers
IDistributedLockβ Distributed lock abstractionMemoryDistributedLockβ In-memory lock implementation
Telemetry & Logging
ITelemetryProviderβ Activity trackingICacheGraphLoggerβ Logging abstraction
Serialization
ICacheSerializerβ Serialization abstractionJsonCacheSerializerβ 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 | Versions 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. |
-
net10.0
- Microsoft.Extensions.Logging (>= 9.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.0)
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.