Skip to content

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

License

Notifications You must be signed in to change notification settings

poulfoged/redis-inside

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

   

Redis Inside

Project dead / looking for maintainer

Since no one is porting redis to windows anymore this project needs to change direction towards linux/osx, looking for anyone interested

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 dotnet core 2.0 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.