Skip to content

Quickly spin up Redis in .NET, for integration tests or local debugging

License

Notifications You must be signed in to change notification settings

nickmkk/Redis2Go

 
 

Repository files navigation

Redis2Go

Quickly spins up Redis in .NET, for integration tests or local debugging.

Inspired by https://github.com/JohannesHoppe/Mongo2Go but for redis instead, and a lot simpler

Installation The Redis2Go Nuget package can be found at https://nuget.org/packages/Redis2Go/

Sample usage

public class RedisFixture : IDisposable
{
    private readonly RedisRunner _runner;

    public RedisFixture()
    {
        this._runner = RedisRunner.StartForDebugging();
        // this._runner = RedisRunner.Start();
    }

    public void Dispose()
    {
        this._runner.Dispose();
    }
}

Default ports and process name

public static class RedisDefaults
{
    public const string ProcessName = "redis-server";

    public const string RedisExecutable = "redis-server";

    public const int DefaultPort = 6379;

    public const int AlternateDefaultPort = 6380;
}

About

Quickly spin up Redis in .NET, for integration tests or local debugging

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • ApacheConf 59.7%
  • C# 37.2%
  • PowerShell 2.1%
  • Shell 1.0%