Fmacias.TplQueue.Cache.MemCache 0.1.0-preview.1

Prefix Reserved
This is a prerelease version of Fmacias.TplQueue.Cache.MemCache.
dotnet add package Fmacias.TplQueue.Cache.MemCache --version 0.1.0-preview.1
                    
NuGet\Install-Package Fmacias.TplQueue.Cache.MemCache -Version 0.1.0-preview.1
                    
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="Fmacias.TplQueue.Cache.MemCache" Version="0.1.0-preview.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fmacias.TplQueue.Cache.MemCache" Version="0.1.0-preview.1" />
                    
Directory.Packages.props
<PackageReference Include="Fmacias.TplQueue.Cache.MemCache" />
                    
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 Fmacias.TplQueue.Cache.MemCache --version 0.1.0-preview.1
                    
#r "nuget: Fmacias.TplQueue.Cache.MemCache, 0.1.0-preview.1"
                    
#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 Fmacias.TplQueue.Cache.MemCache@0.1.0-preview.1
                    
#: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=Fmacias.TplQueue.Cache.MemCache&version=0.1.0-preview.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Fmacias.TplQueue.Cache.MemCache&version=0.1.0-preview.1&prerelease
                    
Install as a Cake Tool

Fmacias.TplQueue.Cache.MemCache

In-memory cache provider built on top of Fmacias.TplQueue.Cache.Abstract.

See also:

Repository-wide packaging and strong-name signing rules are documented in the TplQueue.Adapter root README.

Use this package when you want a lightweight in-process cache provider for dehydrating payload-aware jobs, hydrating them later, and validating cache-backed flows without introducing an external storage dependency.

Install

dotnet add package Fmacias.TplQueue.Cache.MemCache --version 0.1.0-preview.1

Contents

  • MemCacheFactory creation entry point.
  • MemCache in-memory implementation of IMemCache.
  • Internal in-memory repository model for cache entries.

Repository build notes

Run from TplQueue.Adapter root:

  1. Build module:
dotnet build .\src\Fmacias.TplQueue.Cache.MemCache\Fmacias.TplQueue.Cache.MemCache.csproj
  1. Run module tests:
dotnet test .\test\Fmacias.TplQueue.Cache.MemCache.Test\Fmacias.TplQueue.Cache.MemCache.Test.csproj
  1. Pack through repo pipeline:
powershell -NoProfile -ExecutionPolicy Bypass -File .\pack-local.ps1

Usage outline

Create with:

  • IUniversalDataSerializer
  • IDataJobFactory
  • ITypeResolver
  • IPayloadHandlers
  • IRetryPolicyAbstractFactory

Then use cache dehydration/hydration APIs from IMemCache.

Default facade-owned resolver example:

using Fmacias.TplQueue;
using Fmacias.TplQueue.Cache.MemCache;
using Fmacias.TplQueue.Contracts;

IUniversalDataSerializer jsonSerializer = api.SystemTextSerializerFactory().Serializer();
IUniversalDataSerializer xmlSerializer = api.XmlSerializerFactory().Serializer();

IMemCache cache = api.Cache<IMemCache>(
    MemCacheFactory.Create(),
    jsonSerializer);

If payload types must be resolved from a dedicated AppDomain, provide a custom ITypeResolver implementation and pass it through the explicit facade overload. MemCache depends only on the abstraction, not on the concrete runtime resolver.

using Fmacias.TplQueue.Cache.Abstract.Factories;

ITypeResolver typeResolver = RuntimeNodeTypeResolverFactory.Create().Resolver();

IMemCache cache = api.Cache<IMemCache>(
    MemCacheFactory.Create(),
    jsonSerializer,
    typeResolver);

Use the same cache object to dehydrate a payload root, hydrate it back, and dispatch it through a queue:

cache.Dehydrate(payloadRoot, isFifo: false);

ILogger<IParallelQ> queueLogger = loggerFactory.CreateLogger<IParallelQ>();

if (cache.TryHydrateNextJob(out IDataJobRoot hydratedRoot, out ICacheEntry lease))
{
    IParallelQ queue = api.QFactory.Parallel("main", queueLogger);

    queue.Enqueue(hydratedRoot, CancellationToken.None);
    queue.ResumePolling();

    await hydratedRoot.WaitUntilFinishedAsync();
}

Use xmlSerializer instead of jsonSerializer in api.Cache<IMemCache>(...) when XML payload storage is required.

Compatibility note

Some public persisted members still expose JSON-oriented names such as PayloadJson. Those names are retained for compatibility and should be read as serializer-specific payload content. MemCache can store payload content produced by either the JSON or XML IUniversalDataSerializer implementation selected during cache creation.

Runtime type resolution status

Current state:

  • MemCache depends only on ITypeResolver, so it can work with the current AppDomain-based runtime resolver

Deferred work:

  • if plugin payload types start being loaded from dedicated runtime boundaries in modern .NET, the preferred evolution is an AssemblyLoadContext-aware resolver behind ITypeResolver
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 was computed.  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 was computed.  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. 
.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 was computed. 
.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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Fmacias.TplQueue.Cache.MemCache:

Package Downloads
Fmacias.TplQueue

Top-level adapter facade for composing TplQueue Core with retry policies, observers, cache providers, serializers, and configuration-driven queue creation.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0-preview.1 57 5/21/2026

Preview release of the TplQueue adapter package line for .NET Standard 2.0. This release focuses on public package metadata, consumer-facing README documentation, and strong-name-ready official build support ahead of the first stable 1.0.0 release.