1 instantiation of RedisCacheOptions
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (1)
Infrastructure\RedisTestConfig.cs (1)
26return new RedisCache(new RedisCacheOptions()
22 references to RedisCacheOptions
Aspire.StackExchange.Redis.DistributedCaching (12)
AspireRedisDistributedCacheExtensions.cs (12)
42builder.AddRedisDistributedCacheCore((RedisCacheOptions options, IServiceProvider sp) => 72builder.AddRedisDistributedCacheCore((RedisCacheOptions options, IServiceProvider sp) => 82/// <param name="configureOptions">An optional method that can be used for customizing the <see cref="RedisCacheOptions"/>.</param> 99public static AspireRedisClientBuilder WithDistributedCache(this AspireRedisClientBuilder builder, Action<RedisCacheOptions>? configureOptions = null) 103builder.HostBuilder.AddRedisDistributedCacheCore((RedisCacheOptions options, IServiceProvider sp) => 121private static void AddRedisDistributedCacheCore(this IHostApplicationBuilder builder, Action<RedisCacheOptions, IServiceProvider> configureRedisOptions) 125builder.Services.AddOptions<RedisCacheOptions>() // note that RedisCacheOptions doesn't support named options 134/// <param name="configureOptions">An optional method that can be used for customizing the <see cref="RedisCacheOptions"/>.</param> 151public static AspireRedisClientBuilder WithKeyedDistributedCache(this AspireRedisClientBuilder builder, string name, Action<RedisCacheOptions>? configureOptions = null) 160.AddOptions<RedisCacheOptions>(name) 166var options = sp.GetRequiredService<IOptionsMonitor<RedisCacheOptions>>().Get((string?)key);
Microsoft.Extensions.Caching.StackExchangeRedis (10)
RedisCache.cs (3)
46private readonly RedisCacheOptions _options; 84public RedisCache(IOptions<RedisCacheOptions> optionsAccessor) 94internal RedisCache(IOptions<RedisCacheOptions> optionsAccessor, ILogger logger)
RedisCacheImpl.cs (2)
19public RedisCacheImpl(IOptions<RedisCacheOptions> optionsAccessor, ILogger<RedisCache> logger, IServiceProvider services) 25public RedisCacheImpl(IOptions<RedisCacheOptions> optionsAccessor, IServiceProvider services)
RedisCacheOptions.cs (3)
16public class RedisCacheOptions : IOptions<RedisCacheOptions> 45RedisCacheOptions IOptions<RedisCacheOptions>.Value
StackExchangeRedisCacheServiceCollectionExtensions.cs (2)
22/// <see cref="RedisCacheOptions"/>.</param> 24public static IServiceCollection AddStackExchangeRedisCache(this IServiceCollection services, Action<RedisCacheOptions> setupAction)