MichaCo / CacheManager

CacheManager is an open source caching abstraction layer for .NET written in C#. It supports various cache providers and implements many advanced features.
http://cachemanager.michaco.net
Apache License 2.0
2.33k stars 457 forks source link

ArgumentNullException in TryGetValue #324

Closed zoizer closed 3 years ago

zoizer commented 3 years ago

When calling MicrosoftConfigurationExtensions.LoadRedisConfigurations, the resulting RedisConfiguration is created with the default constructor meaning the RedisConfiguration._configurationOptions & RedisConfiguration._connectionString remains uninitialized if no explicit connection string was added. This could probably be solved by calling and storing the result from RedisConfiguration.CreateConfigurationOptions() and ToString().

Crash occurs in RedisConnectionManager.Connect().

MichaCo commented 3 years ago

Not really sure but that simply sounds unsupported / not intended use I'll leave it open to check out at some point. If you could provide a reproduceable example, that would make it easier to understand what the problem is