RedisCache.Common.Repository
1.0.0
dotnet add package RedisCache.Common.Repository --version 1.0.0
NuGet\Install-Package RedisCache.Common.Repository -Version 1.0.0
<PackageReference Include="RedisCache.Common.Repository" Version="1.0.0" />
paket add RedisCache.Common.Repository --version 1.0.0
#r "nuget: RedisCache.Common.Repository, 1.0.0"
// Install RedisCache.Common.Repository as a Cake Addin #addin nuget:?package=RedisCache.Common.Repository&version=1.0.0 // Install RedisCache.Common.Repository as a Cake Tool #tool nuget:?package=RedisCache.Common.Repository&version=1.0.0
Redis Cache Common Repository Package
Table of Contents
Introduction
This package provides an easy and quick way to get started working with distributed caching using Redis.
Getting Started
To get started with this library, download the package (RedisCache.Common.Repository
) from Nuget using your preferred method.
After successful download, in the Program.cs
or Startup.cs
(as the case may be), add these lines to the service collections.
builder.Services.ConfigureRedis("localhost:6379")
.ConfigureCacheRepository();
You can then inject the ICacheCommonRepository
interface into the class you wish to use the methods.
List of Methods
T Get<T>(string key);
bool Set<T>(string key, T value, DateTimeOffset expires);
object Remove(string key);
Task<T> GetAsync<T>(string key);
Task<object> RemoveAsync(string key);
Task<bool> SetAsync<T>(string key, T value, DateTimeOffset expires);
Task<bool> KeyExistsAsync(string key);
bool KeyExists(string key);
Links
To view the source code or get in touch:
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net6.0
- Microsoft.Extensions.Caching.StackExchangeRedis (>= 8.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.0)
- StackExchange.Redis (>= 2.7.10)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 266 | 1/6/2024 |
1.0.0-rc.1 | 73 | 1/6/2024 |