Skip to content

phema-team/Phema.Caching

Repository files navigation

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());

About

C# Strongly typed IDistributedCache wrapper

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages