Phema.Caching 3.0.3

Strongly typed IDistributedCache wrapper

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

Phema.Caching

Build Status
Nuget
Nuget

Strongly typed IDistributedCache wrapper. Working with objects, not bytes!

Installation

$> dotnet add package Phema.Caching

Usage

// Add
services.AddDistributedCache() // Phema.Caching
  .AddDistributedMemoryCache(); // Microsoft.Extensions.Caching.Memory

// Get or inject
var cache = provider.GetRequiredService<IDistributedCache<TestModel>>();

// Use
await cache.SetAsync("test", new TestModel());

Phema.Caching

Build Status
Nuget
Nuget

Strongly typed IDistributedCache wrapper. Working with objects, not bytes!

Installation

$> dotnet add package Phema.Caching

Usage

// Add
services.AddDistributedCache() // Phema.Caching
  .AddDistributedMemoryCache(); // Microsoft.Extensions.Caching.Memory

// Get or inject
var cache = provider.GetRequiredService<IDistributedCache<TestModel>>();

// Use
await cache.SetAsync("test", new TestModel());

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
3.0.3 73 9/25/2019
3.0.2 36 9/1/2019
3.0.1 40 7/28/2019
3.0.0 40 7/24/2019
3.0.0-preview3.0.0 54 4/9/2019