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                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RedisCache.Common.Repository" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RedisCache.Common.Repository --version 1.0.0                
#r "nuget: RedisCache.Common.Repository, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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

  1. Introduction
  2. Getting Started
  3. List of Methods
  4. Links

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);

To view the source code or get in touch:

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 161 1/6/2024
1.0.0-rc.1 59 1/6/2024