PabloCache.Redis
0.1.0-alpha
dotnet add package PabloCache.Redis --version 0.1.0-alpha
NuGet\Install-Package PabloCache.Redis -Version 0.1.0-alpha
<PackageReference Include="PabloCache.Redis" Version="0.1.0-alpha" />
paket add PabloCache.Redis --version 0.1.0-alpha
#r "nuget: PabloCache.Redis, 0.1.0-alpha"
// Install PabloCache.Redis as a Cake Addin #addin nuget:?package=PabloCache.Redis&version=0.1.0-alpha&prerelease // Install PabloCache.Redis as a Cake Tool #tool nuget:?package=PabloCache.Redis&version=0.1.0-alpha&prerelease
PabloCache Redis Cache Implementation
The PabloCache Redis Cache Implementation extends the PabloCache component by providing a concrete implementation using Microsoft's StackExchange Redis Cache. This implementation allows you to use a distributed Redis cache for your caching needs.
Usage
Configure Redis Cache in your IServiceCollection: Use the UseRedisCache extension method to configure the Redis cache within the IPabloCacheComponent:
public class Startup { public void ConfigureServices(IServiceCollection services) { services.AddPabloCaching(component => { // Use the configuration method component.UseRedisCache(services, options => { // Configure Redis cache options here options.Configuration = "your_redis_connection_string"; }); }); } }
Inject and Use the Cache Service: You can now inject and use the ICacheService throughout your application, leveraging the distributed Redis cache functionality.
public class MyService { private readonly ICacheService _cacheService; public MyService(ICacheService cacheService) { _cacheService = cacheService; } // ... (use _cacheService in your methods) }
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- Microsoft.Extensions.Caching.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Caching.Memory (>= 8.0.0)
- Microsoft.Extensions.Caching.StackExchangeRedis (>= 8.0.0)
- PabloCache.Abstractions (>= 0.1.0-alpha)
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 |
---|---|---|
0.1.0-alpha | 138 | 12/26/2023 |