testcontainers / testcontainers-dotnet

A library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions.

Home Page:https://dotnet.testcontainers.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Enhancement]: Add KeyDB support

kanpov opened this issue · comments

Problem

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

  • Valkey, which is a very young fork of Redis that offers pretty much the same feature-set as Redis before the switch to "source-available"
  • KeyDB, which is a more mature fork of Redis that is more performant (multithreaded)

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

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