Anexia.Caching.GlobalCache
0.3.4
dotnet add package Anexia.Caching.GlobalCache --version 0.3.4
NuGet\Install-Package Anexia.Caching.GlobalCache -Version 0.3.4
<PackageReference Include="Anexia.Caching.GlobalCache" Version="0.3.4" />
paket add Anexia.Caching.GlobalCache --version 0.3.4
#r "nuget: Anexia.Caching.GlobalCache, 0.3.4"
// Install Anexia.Caching.GlobalCache as a Cake Addin #addin nuget:?package=Anexia.Caching.GlobalCache&version=0.3.4 // Install Anexia.Caching.GlobalCache as a Cake Tool #tool nuget:?package=Anexia.Caching.GlobalCache&version=0.3.4
Anexia Caching
Package with wrapper arround MemoryCache with specified functions to get/set, cache objects.
Installation and configuration
Install the package via NuGet: "Anexia.Caching.GlobalCache"
public class CacheApp : BaseCache<AppModelToCache>
{
//for MemoryCache
public CacheApp()
: base(sizeLimit: null, serializer: UTF8JsonSerializer.Instance)
{}
//for RedisCache
public CacheApp(RedisConfigModel config)
: base(config, typeKey: nameof(AppModelToCache))
{}
}
protected void Application_Start()
{
IBaseCache<AppModelToCache> bsCache = new CacheApp();
bsCache.Insert(
"key as object",
"value as object",
DateTime.UtcNow.AddMinutes(15));
}
Usage
It's a threadsafe implementation for Caching with .Net Standard 2.1. Used in every possible application needed.
Recommended
If you want to use RedisCache, test the Text.Json serializer with your model that you want to cache.
If Text.Json delivers error messages you have to create your own serilizer with the IBaseSerializer.
Code Coverage and Readme Process
If you want to modify Readme-File, always mod README_BASE.md. README.md will be overwritten after pull request to master-branch.
Testing
If you want to run the Redis cache tests, you have to have a Redis cache running on localhost
List of developers
- Alex Peruzzi <APeruzzi@anexia-it>
- Joachim Eckerl JEckerl@anexia-it.com
- Andreas Aigner AAigner@anexia-it.com
Code Coverage
Package | Line Rate | Branch Rate | Health |
---|---|---|---|
Anexia.Caching.GlobalCache | 25% | 14% | ➖ |
Summary | 25% (150 / 591) | 14% (42 / 296) | ➖ |
Minimum allowed line rate is 20%
Product | Versions 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. |
-
.NETStandard 2.1
- Humanizer (>= 2.8.26)
- Microsoft.Extensions.Caching.Memory (>= 5.0.0)
- Microsoft.Extensions.Caching.StackExchangeRedis (>= 5.0.1)
- Microsoft.Extensions.Configuration (>= 5.0.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 5.0.0)
- Microsoft.Extensions.Configuration.Json (>= 5.0.0)
- Newtonsoft.Json (>= 13.0.1)
- Newtonsoft.Json.Bson (>= 1.0.2)
- StackExchange.Redis (>= 2.5.61)
- System.Text.Json (>= 5.0.1)
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 |
---|---|---|
0.3.4 | 2,453 | 7/20/2023 |
0.3.3 | 154 | 7/20/2023 |
0.3.2 | 155 | 7/20/2023 |
0.3.1 | 167 | 7/14/2023 |
0.3.0 | 163 | 7/14/2023 |
0.2.12 | 13,289 | 5/13/2022 |
0.2.11 | 793 | 5/9/2022 |
0.2.10 | 438 | 5/5/2022 |
0.2.9 | 425 | 5/5/2022 |
0.2.8 | 3,487 | 2/15/2022 |
0.2.7 | 471 | 11/22/2021 |
0.2.6 | 1,715 | 9/30/2021 |
0.2.5 | 1,007 | 6/18/2021 |
0.2.4 | 2,289 | 2/18/2021 |
0.2.3 | 430 | 2/17/2021 |
0.2.2 | 644 | 2/4/2021 |
0.2.1 | 474 | 1/13/2021 |
0.1.0 | 1,856 | 5/12/2020 |