jrusbatch / redis-inside

Start Redis from .NET for integration tests. Contains redis runtime embedded in the dll.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

    #Redis Inside

Run integration tests against Redis without having to start/install an instance.

Redis inside works by extracting the Redis executable to a temporary location and executing it. Internally it uses Redis for windows ported by MS Open Tech.

How to

Launch a Redis instance from just by creating a new instance of Redis. After that the node name and port can be acceessed from the node-property:

using (var redis = new Redis())
{
    // connect to redis.Endpoint here
}

Each instance will run on a random port so you can even run multiple instances:

using (var redis1 = new Redis())
using (var redis2 = new Redis())
{
    // connect to two nodes here
}

Install

Simply add the Nuget package:

PM> Install-Package redis-inside

Requirements

You'll need .NET Framework 4.5.1 or later on 64 bit Windows to use the precompiled binaries.

License

Redis Inside is licensed under the two clause BSD license. Redis is copyrighted by Salvatore Sanfilippo and Pieter Noordhuis and released under the terms of the three clause BSD license.

About

Start Redis from .NET for integration tests. Contains redis runtime embedded in the dll.

License:BSD 2-Clause "Simplified" License


Languages

Language:C# 93.6%Language:PowerShell 4.2%Language:Batchfile 2.2%