.NETFramework4.7.1net6.0.NETStandard2.0
Package Description
Published
Apr 11, 2024
2y ago
Total Downloads
44.0K
43,982
Install
dotnet add package Metalama.Patterns.Caching.Backends.Redis --version 2024.1.11-rc
| Product | Versions |
|---|---|
| .NET | |
| .NET Standard | |
| Other |
README
About
The Metalama.Patterns.Caching.Backends.Redis package complements the Metalama.Patterns.Caching package by adding a Redis-based cache implementation. It also synchronizes multiple in-memory caches, each typically deployed on a different node, through Redis Pub/Sub. This package is based on StackExchange.Redis.
Key Features
- A Redis-based CachingBackend implementation. This allows you to use the
Metalama.Patterns.Cachingpackage with Redis instead of just a local memory cache. - The invalidation of multiple local caches through Redis Pub/Sub.
- A garbage collection task for use when dependencies are enabled.
Main Types
- RedisCachingFactory provides extension methods to configure the Redis caching back-end, specifically:
- Redis configures a Redis-backend.
- WithRedisSynchronization configures cache invalidation over Redis Pub/Sub.
- AddRedisCacheDependencyGarbageCollector adds the garbage collection service to the service collection. CreateRedisCacheDependencyGarbageCollector returns a new instance of this service without adding it to any collection.
Additional Documentation
- API Documentation: https://doc.postsharp.net/metalama/api/metalama-patterns-caching-backends-redis.
- Conceptual documentation:
- Distributed caching with Redis: https://doc.postsharp.net/metalama/patterns/caching/redis.
- Synchronizing local in-memory caches with Redis Pub/Sub: https://doc.postsharp.net/metalama/patterns/caching/pubsub.
Related Packages
Metalama.Patterns.Cachingdefines the cache API abstractions.Metalama.Patterns.Caching.Aspectsprovides an aspect-oriented API overMetalama.Patterns.Cachingand is typically the entry point package.Metalama.Patterns.Caching.Backends.Azureimplements distributed cache invalidation over Azure Service Bus instead of Redis Pub/Sub.
Changes from Previous Version
No structural changes between v2024.1.10-rc and v2024.1.11-rc.
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
This version is marked prerelease. Validate its API and upgrade path before production use.No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.Compatibility metadata lists 3 target frameworks; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.