Read first: How to use Redis on Windows
Redis is a high performance key / value store. It is a NoSQL database. It supports various types of values including scalar and complex data structures including list, set, sorted set and hashset. We can just serialize our (e.g. JSON or XML) and just push it to Redis.
Installing the Service
--service-install
Example 1:
redis-server --service-install redis.windows.conf --loglevel verbose
Result:
D:\redis>redis-server --service-install redis.windows.conf --loglevel verbose [53292] 25 Nov 00:11:21.462 # Granting read/write access to 'NT AUTHORITY\Networ kService' on: "D:\redis" "D:\redis\" [53292] 25 Nov 00:11:21.475 # Redis successfully installed as a service.
Uninstalling the Service
--service-uninstall
Example 2:
redis-server --service-uninstall
Result:
D:\redis>redis-server --service-uninstall [2928] 25 Nov 00:12:51.712 # Redis service successfully uninstalled.
Starting the Service
--service-start
Example 3:
redis-server --service-start
Result:
D:\redis>redis-server --service-start [94976] 25 Nov 00:22:58.507 # Redis service successfully started.
Stopping the Service
--service-stop
Example 4:
redis-server --service-stop
Result:
D:\redis>redis-server --service-stop [95040] 25 Nov 00:23:11.193 # Redis service successfully stopped.