Ascentis.ExternalCache 1.2.0.2

Out of process cache operating as a COM+ server based on MemoryCache class

Install-Package Ascentis.ExternalCache -Version 1.2.0.2
dotnet add package Ascentis.ExternalCache --version 1.2.0.2
<PackageReference Include="Ascentis.ExternalCache" Version="1.2.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Ascentis.ExternalCache --version 1.2.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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.
String supported more efficiently using the overloaded methods that receive string as parameter. The rest of primitives supported using the other overload that receives an object (OleVariant if pure COM calls are made) as parameter.
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.

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.
String supported more efficiently using the overloaded methods that receive string as parameter. The rest of primitives supported using the other overload that receives an object (OleVariant if pure COM calls are made) as parameter.
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.

Release Notes

Removed external cache item. No need COM object to transfer data, use simple Dynamic class

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.2.0.2 44 9/2/2019
1.1.0.1 54 8/26/2019
1.1.0 54 8/25/2019
1.0.0.3 53 8/24/2019
1.0.0.2 54 8/23/2019
1.0.0.1 55 8/23/2019