Strongly typed IDistributedCache
wrapper. Working with objects, not bytes!
$> dotnet add package Phema.Caching
// 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());