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.
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
}
Simply add the Nuget package:
PM> Install-Package redis-inside
You'll need .NET Framework 4.5.1 or dotnet core 2.0 or later on 64 bit Windows to use the precompiled binaries.
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.