GOSTechnology.Providers.RedisProvider.LIB 1.0.0-preview6

This is a prerelease version of GOSTechnology.Providers.RedisProvider.LIB.
dotnet add package GOSTechnology.Providers.RedisProvider.LIB --version 1.0.0-preview6
NuGet\Install-Package GOSTechnology.Providers.RedisProvider.LIB -Version 1.0.0-preview6
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="GOSTechnology.Providers.RedisProvider.LIB" Version="1.0.0-preview6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GOSTechnology.Providers.RedisProvider.LIB --version 1.0.0-preview6
#r "nuget: GOSTechnology.Providers.RedisProvider.LIB, 1.0.0-preview6"
#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 GOSTechnology.Providers.RedisProvider.LIB as a Cake Addin
#addin nuget:?package=GOSTechnology.Providers.RedisProvider.LIB&version=1.0.0-preview6&prerelease

// Install GOSTechnology.Providers.RedisProvider.LIB as a Cake Tool
#tool nuget:?package=GOSTechnology.Providers.RedisProvider.LIB&version=1.0.0-preview6&prerelease

GOSTechnology.Providers.RedisProvider.LIB

Redis connection management provider.

Version Note: 1.0.0-preview6.

N|Solid

1 - CONFIGURING LIBRARY:

  • Add system environment variable (linux or windows):

RedisConnectionString = host=x.x.x.x;port=6379;password=mypassword;timeout=500;timecache=300;

  • Add using namespace for library:

using GOSTechnology.Providers.RedisProvider.LIB;

  • Add dependency injection (ConfigureServices - Startup.cs):

services.AddRedisProvider();

  • Add dependency injection with scope (ConfigureServices - Startup.cs):

// SINGLETON or SCOPED or TRANSIENT.

services.AddRedisProvider(TypeInjection.SCOPED);


2 - USING LIBRARY:

  • Persist json (string value in Redis validated as json) in Redis server:

var key = Guid.NewGuid().ToString();

var obj = new { Message = "ShouldSuccessPersist" };

this._redisProvider.Persist(key, obj);

  • PersistAsync json (string value in Redis validated as json) in Redis server:

var key = Guid.NewGuid().ToString();

var obj = new { Message = "ShouldSuccessPersist" };

await this._redisProvider.PersistAsync(key, obj);

  • Remove json (string value validated as json) in Redis server:

var key = Guid.NewGuid().ToString();

this._redisProvider.Remove(key);

  • RemoveAsync json (string value validated as json) in Redis server:

var key = Guid.NewGuid().ToString();

await this._redisProvider.RemoveAsync(key);

  • Get json (string value in Redis validated as json) in Redis server:

var key = Guid.NewGuid().ToString();

Object result = this._redisProvider.Get<Object>(key);

  • GetAsync json (string value in Redis validated as json) in Redis server:

var key = Guid.NewGuid().ToString();

Object result = await this._redisProvider.GetAsync<Object>(key);

.

Note: Environment variable RedisConnectionString require timeout in miliseconds (obviously by response time level).
Note: Environment variable RedisConnectionString require timecache in secods (obviously by the level of persistence time).
Note: Persists (synchronous or asynchronous) and Gets (synchronous or asynchronous) methods uses conversion Newtonsoft.Json for transform object in string json, validated as json in Redis server.
Note: Persists (synchronous or asynchronous) and Removes (synchronous or asynchronous) methods is of type command flag FireAndForget (obviously using Redis without response prioritization).
Note: The methods Persist, PersistAsync, Remove and RemoveAsync provide the FireAndForget command flag of Redis configured by default, but it is possible to customize it according to your needs, passing it as a parameter in each method usage (last parameter).
Note: Object can be any template class passed as a type for object.

.

Github for contribute or issues: https://github.com/gabrielmotakiru/GOSTechnology.Providers.RedisProvider.LIB
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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-preview6 201 6/27/2021
1.0.0-preview5 425 6/27/2021
1.0.0-preview4 461 6/25/2021
1.0.0-preview3 506 6/25/2021
1.0.0-preview2 444 6/25/2021
1.0.0-preview1 487 6/23/2021

1.0.0-preview1: Deprecated version, not maintained.
1.0.0-preview2: Deprecated version, not maintained.
1.0.0-preview3: Deprecated version, not maintained.
1.0.0-preview4: Deprecated version, not maintained.
1.0.0-preview5: Deprecated version, not maintained.
1.0.0-preview6: Last Version.