Configuration
Caching module requires serveral NuGet package installations. First you need to install Eiffel.Caching.Extensions.DependencyInjection package.
After the installation, AddCaching extension method will be accessible from WebApplicationBuilder
class instance.
The Caching module provides distributed and in-memory caching options. The CacheSource
enum provides a list of supported cache sources
You can use the AddCaching method without parameters, but in that case, you must define the Caching section with the related source configuration in the appsettings.json file.
Example Redis configuration section. For configuration details please read.
Example In-Memory configuration section. For configuration details please read.
Last updated