Recently, a company’s project that use Redis hot standby intead of Asp.Net state service provider.
So I look around a lot of technical resources and find a solution: aspnet-redis-providers

And the detail see that article Use Redis service instead of Asp.Net session provider

This article talk about How to install redis in windows

Chocolate Install Redis

1
2
# install choco
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
1
2
# install redis-64
choco install redis-64

Redis Configuration

Install Redis Service

Sample - redis.windows.conf

1
2
3
4
# default port 6379
redis-server --service-install redis.windows.conf --loglevel verbose
# port 6380
redis-server --service-install --service-name Redis6380 --port 6380

Uninstall Redis Service

1
redis-server --service-uninstall --service-name Redis6380 --port 6380

Redis Service Operation

1
2
3
4
5
# start
redis-server --service-start

# stop
redis-server --service-stop

Redis Sentinel Configuration

Sample - redis.sentinel.conf

1
redis-server --service-install --service-name redisSentinel sentinel.conf --sentinel

And the more Redis please see the Redis Tutorials~