dotnet / dotnet/aspnetcore

IOptions<RedisCacheOptions> When change RedisCacheOptions I dont see new connection

Open
#28,368 4 comments 3 reactions 0 assignees View on GitHub
area-middleware feature-caching
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

### Describe the bug

When change RedisCacheOptions RedisCache dont connect again on runtime because RedisCache is Singleton and Singleton objects uses IOptionsMonitor when configuration changes. I Think we must change IOptions to IOptionsMonitor and we must write IOptionsMonitor OnChange event

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.