PabloCache.Redis 0.1.0-alpha

This is a prerelease version of PabloCache.Redis.
dotnet add package PabloCache.Redis --version 0.1.0-alpha                
NuGet\Install-Package PabloCache.Redis -Version 0.1.0-alpha                
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="PabloCache.Redis" Version="0.1.0-alpha" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PabloCache.Redis --version 0.1.0-alpha                
#r "nuget: PabloCache.Redis, 0.1.0-alpha"                
#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.
// 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 145 12/26/2023