Deploy Garnet as Windows Service (Redis Alternative)
- Create a Worker Service Project
- Install
Microsoft.Extensions.Hosting.WindowsServicesand obviouslyMicrosoft.Garnet. - Add this to your
Program.cs:
builder.Services.AddWindowsService(options =>
{
...