RedisCacheClient is a compatible ObjectCache client for .NET Standard
$ dotnet add package RedisCacheClientRedisCacheClient is a compatible ObjectCache client for .NET Standard
| Package Name | Target Framework | NuGet |
|---|---|---|
| RedisCacheClient | .NET Standard 2.0 |
Install-Package RedisCacheClient
dotnet add package RedisCacheClient
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);
}
This project is licensed under the MIT License