testcontainers / testcontainers-dotnet

A library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions.
https://dotnet.testcontainers.org
MIT License
3.65k stars 250 forks source link

[Enhancement]: Add KeyDB support #1192

Open kanpov opened 3 weeks ago

kanpov commented 3 weeks ago

Problem

Redis is no longer open-source, and the main two alternatives to it are:

In my projects, I've switched to using KeyDB, which induced quite a bit of boilerplate for my tests that need a distributed cache, and I think that having a KeyDB module in Testcontainers.NET will be beneficial.

Solution

Introduce a KeyDB module.

Benefit

Support those that have opted to switch to KeyDB after the Redis fiasco.

Alternatives

The main alternative is supporting Valkey, which has also rapidly gained popularity, but, considering that KeyDB offers some unique features over Valkey, I see support of both as relevant.

Would you like to help contributing this enhancement?

Yes

kanpov commented 3 weeks ago

I'd be interested in contributing, taking a look at the Redis module will probably be beneficial.