shibayan / RedisCacheClient

RedisCacheClient is a compatible ObjectCache client for .NET Standard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RedisCacheClient

Build License Downloads

RedisCacheClient is a compatible ObjectCache client for .NET Standard

NuGet Package

Package Name Target Framework NuGet
RedisCacheClient .NET Standard 2.0 NuGet

Install

Install-Package RedisCacheClient
dotnet add package RedisCacheClient

Usage

var cache = new RedisCache("localhost");

cache.Set("foo", "bar", ObjectCache.InfiniteAbsoluteExpiration);

cache.Set("baz", 123, DateTimeOffset.Now.AddSeconds(10));

var results = cache.GetValues(new[] { "foo", "baz" });

foreach (var item in results)
{
    Console.WriteLine("{0} - {1}", item.Key, item.Value);
}

License

This project is licensed under the MIT License

About

RedisCacheClient is a compatible ObjectCache client for .NET Standard

License:MIT License


Languages

Language:C# 100.0%