This guide shows how to create and execute .NET Core console application which uses ServiceStack.Redis.
At the first step you need to install Visual Studio 2015 update 3 and .NET Core 1.0.0 - VS 2015 Tooling Preview.
To get more details about Visual Studio 2015 update 3 and .NET Core installation you can visit .NET Core site.
In Visual Studio click File-> New-> Project
and select .NET Core/Console Application (.NET Core)
from VS templates.
You will get following structure in Solution Explorer.
Right click on the project and select Manage NuGet Packages
In opened window click Browse tab, type ServiceStack.Redis.Core and hit Enter
Then open file Program.cs
and write the code. Change the address localhost:6379
to the host:port where your Redis server is located.
Steps to connect to Redis.
- Create a
RedisManagerPool
- Get client via
manager.GetClient()
For more information on the using the ServiceStack.Redis API, try these live demos!