RedisCache.Quick
1.0.0
dotnet add package RedisCache.Quick --version 1.0.0
NuGet\Install-Package RedisCache.Quick -Version 1.0.0
<PackageReference Include="RedisCache.Quick" Version="1.0.0" />
paket add RedisCache.Quick --version 1.0.0
#r "nuget: RedisCache.Quick, 1.0.0"
// Install RedisCache.Quick as a Cake Addin #addin nuget:?package=RedisCache.Quick&version=1.0.0 // Install RedisCache.Quick as a Cake Tool #tool nuget:?package=RedisCache.Quick&version=1.0.0
This client library is a powerful tool for Azure Redis Cache services. This tool allows to easy set/get to cache service with using only one line of code.
If you have any questions or need improvement feel free to contact me: [email protected]
Sample code:
// init
RedisCacheQuick redis = new RedisCacheQuick("***.redis.cache.windows.net:***,password=***,ssl=***,abortConnect=***");
// set string
redis.StringSet("keyName_1", "Sample text.");
// get string
string value_1 = redis.StringGet("keyName_1");
// set any object - DateTime, int, double, ...
redis.Set("keyName_2", DateTime.UtcNow);
// get any object
DateTime value_2 = redis.Get<DateTime>("keyName_2");
// get object
DateTime? value_not_exists = redis.Get<DateTime?>("keyName_not_exists"); // return value will be null
// set own object
redis.Set("keyName_3", new Employee(1, "Name1"));
// get own object
Employee value_3 = redis.Get<Employee>("keyName_3");
---
public class Employee
{
public int Id { get; set; }
public string Name { get; set; }
public Employee(int id, string name)
{
this.Id = id;
this.Name = name;
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net46 is compatible. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
- Newtonsoft.Json (>= 9.0.1)
- StackExchange.Redis (>= 1.2.6)
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 | 1,267 | 1/14/2018 |