LiteX.Cache.Redis 7.0.2

Distributed caching based on StackExchange.Redis and Redis.
Small library for manage cache with Redis. A quick setup for Redis.
     Wrapper library is just written for the purpose to bring a new level of ease to the developers who deal with Redis Cache integration with your system.

     
 LiteXCache is simple yet powerful and very high-performance cache mechanism and incorporating both synchronous and asynchronous usage with some advanced usages of caching which can help us to handle caching more easier!
 Provide Cache service for any type of application (.NET Core, .NET Standard).
 Very simple yet advanced configuration. Minimal (one line) code configuration is required.

There is a newer version of this package available.
See the version list below for details.
Install-Package LiteX.Cache.Redis -Version 7.0.2
dotnet add package LiteX.Cache.Redis --version 7.0.2
<PackageReference Include="LiteX.Cache.Redis" Version="7.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LiteX.Cache.Redis --version 7.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

LiteX Redis Cache

Distributed caching based on StackExchange.Redis and Redis.

This client library enables working with the Redis Cache for caching any type of data.

Small library to abstract caching mechanism to Redis Cache. Quick setup for Redis Cache and very simple wrapper for the Redis Cache.

Very simple configuration in advanced ways. Purpose of this package is to bring a new level of ease to the developers who deal with Redis Cache integration with their system.

Basic Usage

Install the package

Install via Nuget.

PM> Install-Package LiteX.Cache.Redis
AppSettings
{  
  //LiteX Redis Cache settings
  "RedisConfig": {
    "RedisCachingConnectionString": "127.0.0.1:6379,ssl=False",
    "PersistDataProtectionKeysToRedis": false,
    "EnableLogging": true
  }
}
Configure Startup Class
public class Startup
{
    public void ConfigureServices(IServiceCollection services)
    {
        // 1. Use default configuration from appsettings.json's 'RedisConfig'
        services.AddLiteXRedisCache();

        //OR
        // 2. Load configuration settings using options.
        services.AddLiteXRedisCache(option =>
        {
            option.RedisCachingConnectionString = "127.0.0.1:6379,ssl=False";
            option.EnableLogging = false;
        });

        //OR
        // 3. Load configuration settings on your own.
        // (e.g. appsettings, database, hardcoded)
        var redisConfig = new RedisConfig()
        {
            RedisCachingConnectionString = "127.0.0.1:6379,ssl=False",
            EnableLogging = false,
        };
        services.AddLiteXRedisCache(redisConfig);
    }
}

Sample Usage Example

Same for all providers.

For more helpful information about LiteX Caching, Please click here.

LiteX Redis Cache

Distributed caching based on StackExchange.Redis and Redis.

This client library enables working with the Redis Cache for caching any type of data.

Small library to abstract caching mechanism to Redis Cache. Quick setup for Redis Cache and very simple wrapper for the Redis Cache.

Very simple configuration in advanced ways. Purpose of this package is to bring a new level of ease to the developers who deal with Redis Cache integration with their system.

Basic Usage

Install the package

Install via Nuget.

PM> Install-Package LiteX.Cache.Redis
AppSettings
{  
  //LiteX Redis Cache settings
  "RedisConfig": {
    "RedisCachingConnectionString": "127.0.0.1:6379,ssl=False",
    "PersistDataProtectionKeysToRedis": false,
    "EnableLogging": true
  }
}
Configure Startup Class
public class Startup
{
    public void ConfigureServices(IServiceCollection services)
    {
        // 1. Use default configuration from appsettings.json's 'RedisConfig'
        services.AddLiteXRedisCache();

        //OR
        // 2. Load configuration settings using options.
        services.AddLiteXRedisCache(option =>
        {
            option.RedisCachingConnectionString = "127.0.0.1:6379,ssl=False";
            option.EnableLogging = false;
        });

        //OR
        // 3. Load configuration settings on your own.
        // (e.g. appsettings, database, hardcoded)
        var redisConfig = new RedisConfig()
        {
            RedisCachingConnectionString = "127.0.0.1:6379,ssl=False",
            EnableLogging = false,
        };
        services.AddLiteXRedisCache(redisConfig);
    }
}

Sample Usage Example

Same for all providers.

For more helpful information about LiteX Caching, Please click here.

Release Notes

Logging support.
     Code re-factoring and optimization changes. (use c# latest minor version - 7.3)

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
7.0.3 1,030 1/31/2019
7.0.2 1,253 8/25/2018
7.0.1 146 8/9/2018
7.0.0 208 6/30/2018
6.2.0 232 6/23/2018
6.1.0 260 6/18/2018
6.0.0 266 6/2/2018
5.0.0 230 5/7/2018
4.0.0 324 5/4/2018
3.0.0 281 4/25/2018
2.0.0 256 4/22/2018
1.0.0 318 4/20/2018