AspireRedisDistributedCacheExtensions
Class static net10.0
Provides extension methods for adding Redis distributed caching services to an
Hosting.IHostApplicationBuilder. namespace Microsoft.Extensions.Hosting;
public static class AspireRedisDistributedCacheExtensions{ // ...}Methods4
Section titled MethodsAddKeyedRedisDistributedCache(IHostApplicationBuilder, string, Action<StackExchangeRedisSettings>, Action<ConfigurationOptions>)extension Adds Redis distributed caching services,
Distributed.IDistributedCache, in the services provided by the builder. AddRedisDistributedCache(IHostApplicationBuilder, string, Action<StackExchangeRedisSettings>, Action<ConfigurationOptions>)extension Adds Redis distributed caching services,
Distributed.IDistributedCache, in the services provided by the builder. WithDistributedCache(AspireRedisClientBuilder, Action<RedisCacheOptions>)extensionAspireRedisClientBuilder Configures the Redis client to also provide distributed caching services through
Distributed.IDistributedCache. WithKeyedDistributedCache(AspireRedisClientBuilder, string, Action<RedisCacheOptions>)extensionAspireRedisClientBuilder Configures the Redis client to provide a keyed distributed caching service through
Distributed.IDistributedCache using name as the key.