Common.SmartCache 0.9.0.255

dotnet add package Common.SmartCache --version 0.9.0.255
 
NuGet\Install-Package Common.SmartCache -Version 0.9.0.255
 
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="Common.SmartCache" Version="0.9.0.255" />
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Common.SmartCache" Version="0.9.0.255" />
 
Directory.Packages.props
<PackageReference Include="Common.SmartCache" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Common.SmartCache --version 0.9.0.255
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Common.SmartCache, 0.9.0.255"
 
#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.
#:package Common.SmartCache@0.9.0.255
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Common.SmartCache&version=0.9.0.255
 
Install as a Cake Addin
#tool nuget:?package=Common.SmartCache&version=0.9.0.255
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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 Compatible and additional computed target framework versions.
.NET 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 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.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
0.9.0.255 638 2/7/2024
0.9.0.254 642 10/23/2023
0.9.0.253 663 10/13/2023
0.9.0.251 645 10/1/2023
0.9.0.250 621 10/1/2023
0.9.0.249 634 9/3/2023
0.9.0.248 609 8/30/2023
0.9.0.247 684 8/30/2023
0.9.0.246 625 8/30/2023
0.9.0.243 660 8/30/2023
0.9.0.242 610 8/30/2023
0.9.0.241 614 8/30/2023
0.9.0.239 658 8/30/2023
0.9.0.238 660 8/29/2023
0.9.0.237 644 8/29/2023
0.9.0.236 641 8/29/2023
0.9.0.235 657 8/29/2023
0.9.0.234 661 8/29/2023
0.9.0.229 676 8/28/2023
0.9.0.228 686 8/28/2023
Loading failed