Eve.Caching.Redis 0.1.2

Redis caching module.

Install-Package Eve.Caching.Redis -Version 0.1.2
dotnet add package Eve.Caching.Redis --version 0.1.2
<PackageReference Include="Eve.Caching.Redis" Version="0.1.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Eve.Caching.Redis --version 0.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Eve.Caching.Redis, 0.1.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Eve.Caching.Redis as a Cake Addin
#addin nuget:?package=Eve.Caching.Redis&version=0.1.2

// Install Eve.Caching.Redis as a Cake Tool
#tool nuget:?package=Eve.Caching.Redis&version=0.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Eve.Caching

Eve.Caching provide a simple caching interface. The base library also containes a simple in-memory provider. There is also more extention libraries that impliment this interface for popular caching services like Redis (rc2 is avalible) or Memcached (under development).

Installing Module

Nuget package is abalible!

Base library

dotnet add package Eve.Caching

Redis provider

dotnet add package Eve.Caching.Redis

Simple usage

Simple provider

    ICacheProvider<string, object> _cache = new SimpleCacheProvider<object>();
    _cache.Cache("test", new { message = "Hello World!" });
    Console.WriteLine((string)_cache.Get<dynamic>("test").message);

Redis Provider

    string cnn = "127.0.0.1:6379,defaultDatabase=0";
    ICacheProvider<string, object> _cache = new RedisCacheProvider<object>(StackExchange.Redis.ConfigurationOptions.Parse(cnn));
    _cache.Cache("test", new { message = "Hello World!" });
    Console.WriteLine((string)_cache.Get<Dictionary<object,object>>("test")["message"]);

Eve.Caching

Eve.Caching provide a simple caching interface. The base library also containes a simple in-memory provider. There is also more extention libraries that impliment this interface for popular caching services like Redis (rc2 is avalible) or Memcached (under development).

Installing Module

Nuget package is abalible!

Base library

dotnet add package Eve.Caching

Redis provider

dotnet add package Eve.Caching.Redis

Simple usage

Simple provider

    ICacheProvider<string, object> _cache = new SimpleCacheProvider<object>();
    _cache.Cache("test", new { message = "Hello World!" });
    Console.WriteLine((string)_cache.Get<dynamic>("test").message);

Redis Provider

    string cnn = "127.0.0.1:6379,defaultDatabase=0";
    ICacheProvider<string, object> _cache = new RedisCacheProvider<object>(StackExchange.Redis.ConfigurationOptions.Parse(cnn));
    _cache.Cache("test", new { message = "Hello World!" });
    Console.WriteLine((string)_cache.Get<Dictionary<object,object>>("test")["message"]);

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.1.2 288 1/7/2020