https://github.com/shibayan/rediscacheclient
RedisCacheClient is a compatible ObjectCache client for .NET Standard
https://github.com/shibayan/rediscacheclient
Last synced: over 1 year ago
JSON representation
RedisCacheClient is a compatible ObjectCache client for .NET Standard
- Host: GitHub
- URL: https://github.com/shibayan/rediscacheclient
- Owner: shibayan
- License: mit
- Created: 2014-09-07T11:00:26.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2022-06-27T09:19:09.000Z (about 4 years ago)
- Last Synced: 2025-02-12T06:57:01.719Z (over 1 year ago)
- Language: C#
- Homepage:
- Size: 31.3 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# RedisCacheClient

[](https://github.com/shibayan/RedisCacheClient/blob/master/LICENSE)
[](https://www.nuget.org/packages/RedisCacheClient/)
RedisCacheClient is a compatible ObjectCache client for .NET Standard
## NuGet Package
Package Name | Target Framework | NuGet
---|---|---
RedisCacheClient | .NET Standard 2.0 | [](https://www.nuget.org/packages/RedisCacheClient/)
## Install
```
Install-Package RedisCacheClient
```
```
dotnet add package RedisCacheClient
```
## Usage
```csharp
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](https://github.com/shibayan/RedisCacheClient/blob/master/LICENSE)