Common.SmartCache 0.9.0.255

Suggested Alternatives

Diginsight.SmartCache

Additional Details

'Common.SmartCache' is legacy and replaced by 'Diginsight.SmartCache' that replaces and upgrades its functionality.
please refer to 'Diginsight.SmartCache' documentation on https://github.com/diginsight/smartcache

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.
paket add Common.SmartCache --version 0.9.0.255
#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.
// Install Common.SmartCache as a Cake Addin
#addin nuget:?package=Common.SmartCache&version=0.9.0.255

// Install Common.SmartCache as a Cake Tool
#tool nuget:?package=Common.SmartCache&version=0.9.0.255

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. 
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 270 2/7/2024
0.9.0.254 454 10/23/2023
0.9.0.253 478 10/13/2023
0.9.0.251 466 10/1/2023
0.9.0.250 449 10/1/2023
0.9.0.249 456 9/3/2023
0.9.0.248 428 8/30/2023
0.9.0.247 478 8/30/2023
0.9.0.246 438 8/30/2023
0.9.0.243 484 8/30/2023
0.9.0.242 417 8/30/2023
0.9.0.241 458 8/30/2023
0.9.0.239 463 8/30/2023
0.9.0.238 463 8/29/2023
0.9.0.237 444 8/29/2023
0.9.0.236 456 8/29/2023
0.9.0.235 461 8/29/2023
0.9.0.234 476 8/29/2023
0.9.0.229 494 8/28/2023
0.9.0.228 484 8/28/2023
0.9.0.227 474 8/28/2023
0.9.0.226 423 8/28/2023
0.9.0.225 499 8/23/2023
0.9.0.224 479 8/23/2023
0.9.0.223 493 8/20/2023
0.9.0.222 473 8/20/2023
0.9.0.221 466 8/20/2023
0.9.0.213 507 8/19/2023
0.9.0.212 507 8/19/2023
0.9.0.211 495 8/19/2023
0.9.0.210 472 8/19/2023
0.9.0.209 449 8/19/2023
0.9.0.208 462 8/19/2023
0.9.0.207 456 8/18/2023
0.9.0.206 465 8/17/2023
0.9.0.205 480 8/16/2023
0.9.0.204 472 8/16/2023
0.9.0.203 484 8/16/2023
0.9.0.202 474 8/16/2023
0.9.0.201 459 8/16/2023
0.9.0.200 467 8/16/2023
0.9.0.199 498 8/15/2023
0.9.0.198 443 8/15/2023
0.9.0.197 445 8/15/2023
0.9.0.196 484 8/15/2023
0.9.0.195 466 8/15/2023
0.9.0.194 468 8/15/2023
0.9.0.193 477 8/15/2023
0.9.0.192 480 8/15/2023
0.9.0.191 508 8/15/2023
0.9.0.190 460 8/15/2023
0.9.0.184 476 8/15/2023
0.9.0.170 470 8/15/2023
0.9.0.169 498 8/15/2023
0.9.0.166 505 8/15/2023
0.9.0.164 491 8/15/2023
0.9.0.149 494 8/13/2023
0.9.0.148 474 8/13/2023
0.9.0.146 503 8/13/2023
0.9.0.144 466 8/13/2023
0.9.0.143 501 8/13/2023
0.9.0.142 477 8/13/2023
0.9.0.139 498 8/13/2023
0.9.0.136 479 8/12/2023
0.9.0.131 465 8/12/2023
0.9.0.130 469 8/12/2023
0.9.0.123 513 8/12/2023
0.9.0.122 452 8/12/2023
0.9.0.121 467 8/12/2023
0.9.0.111 485 8/11/2023
0.9.0.110 486 8/11/2023
0.9.0.109 500 8/11/2023
0.9.0.108 492 8/11/2023
0.9.0.107 479 8/11/2023
0.9.0.106 485 8/11/2023
0.9.0.105 496 8/11/2023
0.9.0.9 481 8/12/2023
0.9.0.7 509 8/12/2023
0.9.0.5 482 8/12/2023
0.9.0.4 493 8/12/2023
0.9.0.3 469 8/12/2023
0.9.0.2 461 8/12/2023
0.9.0.1 445 8/12/2023