Ascentis.ExternalCache
1.0.0.3
See the version list below for details.
dotnet add package Ascentis.ExternalCache --version 1.0.0.3
NuGet\Install-Package Ascentis.ExternalCache -Version 1.0.0.3
<PackageReference Include="Ascentis.ExternalCache" Version="1.0.0.3" />
paket add Ascentis.ExternalCache --version 1.0.0.3
#r "nuget: Ascentis.ExternalCache, 1.0.0.3"
// Install Ascentis.ExternalCache as a Cake Addin #addin nuget:?package=Ascentis.ExternalCache&version=1.0.0.3 // Install Ascentis.ExternalCache as a Cake Tool #tool nuget:?package=Ascentis.ExternalCache&version=1.0.0.3
Ascentis.ExternalCache Component
This component offers a subset of the functionality you get by using MemoryCache in your application's default process and AppDomain.
Why would you use this class?
If you have a model where you run in one machine a farm of processes and want a drop-in easy way to implement a shared cache of data with functionality like the one provided by MemoryCache this class can help fulfill your needs.
Some details to consider:
Strongly recommended to store data using primitive types (only string supported for now). The class supports serialized COM objects but performance is about 10x slower than serializing your object as text (JSON o XML) and then caching the text. When passing a COM object to store in cache, a shallow copy will be performed and the resulting copied object will be stored. Currently only public properties are copied over and there's no test to verify the behavior if within those properties there's a subobject. Current tests cover only the case of a COM DTO containing only primitive public properties.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net40 is compatible. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Refactored the code to property support IDisposable objects (COM objects) when inserted into caches