Diginsight.SmartCache.Externalization.AspNetCore
3.2.1
dotnet add package Diginsight.SmartCache.Externalization.AspNetCore --version 3.2.1
NuGet\Install-Package Diginsight.SmartCache.Externalization.AspNetCore -Version 3.2.1
<PackageReference Include="Diginsight.SmartCache.Externalization.AspNetCore" Version="3.2.1" />
paket add Diginsight.SmartCache.Externalization.AspNetCore --version 3.2.1
#r "nuget: Diginsight.SmartCache.Externalization.AspNetCore, 3.2.1"
// Install Diginsight.SmartCache.Externalization.AspNetCore as a Cake Addin #addin nuget:?package=Diginsight.SmartCache.Externalization.AspNetCore&version=3.2.1 // Install Diginsight.SmartCache.Externalization.AspNetCore as a Cake Tool #tool nuget:?package=Diginsight.SmartCache.Externalization.AspNetCore&version=3.2.1
INTRODUCTION
Common.SmartCache
provides intelligent loading for data providers such as external api or databases.
Age conscious data management is applied to cache or preload data automatically.
AI assisted algorithms can be used to ensure data preloading, based on application use.
Articles:
- [HOWTO - Leverage age conscious data management to boost application performance.md] (TODO): explores how to use Common.SmartCache to boost application performance by means age conscious data magagement.
- [HOWTO - Enable data preloading by means of Artificial Intelligence.md] (TODO): explores how to enable AI assisted preloading to improve data preloading efficiency.
NB: Common.SmartCache is currently under development and use ov versions 0.x.x.x is not supported
STEPS TO USE SMARTCACHE:
add Common.SmartCache to your application
load your data by means of Common.SmartCache cacheService
public async Task<UserProfileResponse> GetUserByEmailAddressAsync(string emailAddress, CacheContext cacheContext)
{
using var scope = logger.BeginMethodScope(() => new { emailAddress });
var cacheKey = new GetUserByEmailAddressAsyncCacheKey(emailAddress);
var result = await cacheService.GetAsync(
cacheKey,
() => wrapped.GetUserByEmailAddressAsyncAsync(emailAddress, MakeRequestOptions(scope)), cacheContext);
return result;
}
- load your data expressing the required age for it:
var cacheContext = new CacheContext() { Enabled = true, MaxAge = 300 };
var userProfile = await userProfileService.FindUserByEmailAddressAsync(context.Account.Email, cacheContext).ConfigureAwait(false);
Common.SmartCache will provide automatic caching based on payload size, retrieval latency etc. Common.SmartCache will support data preloading based on application use and age required for the loaded data.
Common.SmartCache component is supported on .Net Framework 4.6.2+ and .Net Core 3.0+.<br> For more information visi:. [smartcache]: https://github.com/diginsight/smartcache/
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. 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 is compatible. 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 is compatible. 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 is compatible. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. 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.0
- Diginsight.AspNetCore (>= 3.2.2)
- Diginsight.Diagnostics (>= 3.2.2)
- Diginsight.SmartCache.Externalization.Http (>= 3.2.1)
- Microsoft.AspNetCore.Mvc.Core (>= 2.2.5)
-
.NETStandard 2.1
- Diginsight.AspNetCore (>= 3.2.2)
- Diginsight.Diagnostics (>= 3.2.2)
- Diginsight.SmartCache.Externalization.Http (>= 3.2.1)
- Microsoft.AspNetCore.Mvc.Core (>= 2.2.5)
-
net6.0
- Diginsight.AspNetCore (>= 3.2.2)
- Diginsight.Diagnostics (>= 3.2.2)
- Diginsight.SmartCache.Externalization.Http (>= 3.2.1)
-
net7.0
- Diginsight.AspNetCore (>= 3.2.2)
- Diginsight.Diagnostics (>= 3.2.2)
- Diginsight.SmartCache.Externalization.Http (>= 3.2.1)
-
net8.0
- Diginsight.AspNetCore (>= 3.2.2)
- Diginsight.Diagnostics (>= 3.2.2)
- Diginsight.SmartCache.Externalization.Http (>= 3.2.1)
-
net9.0
- Diginsight.AspNetCore (>= 3.2.2)
- Diginsight.Diagnostics (>= 3.2.2)
- Diginsight.SmartCache.Externalization.Http (>= 3.2.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.