aspnetcore-redis-rate-limiting icon indicating copy to clipboard operation
aspnetcore-redis-rate-limiting copied to clipboard

Multiplexer instances are not disposed

Open Sholtee opened this issue 9 months ago • 1 comments

hello,

Since the library uses factory pattern to create IConnectionMultiplexer instances my assumption was that the returned objects would be disposed automatically. But as it turned out that's not the case. I suggest you to either drop the factory pattern (and introduce a single ConnectionMultiplexer property) or take care of the proper decommission. Great library anyway :)

Sholtee avatar Feb 15 '25 08:02 Sholtee

Also, since all it does with the connection multiplexer is call GetDatabase(), maybe it should accept a Database property instead?

gabrielsoldani avatar Nov 11 '25 21:11 gabrielsoldani