Caching dramatically improves application's performance
There are two types of caching available, InMemory & Redis.
In memory caching is used by default
Redis should be used instead in production environments where multiple instances of the same application might exist.
Configure the CacheProvider appsettings.json property as follow:
In Memory Caching: InMemory or empty string or non existing property:
Redis Caching: Redis
Examples
"CacheProvider": "InMemory"
"CacheProvider": "Redis", "RedisConnectionString": "127.0.0.1:6379"
With Redis caching, you also need to configure the RedisConnectionString property
Configure the caching for Harmony.Api & Harmony.Automations projects
Last updated 1 year ago