How to use Redis on Windows


Only for Windows 64bits:

Step 1: Download https://github.com/ServiceStack/redis-windows/raw/master/downloads/redis-latest.zip

Step 2: Extract redis-latest.zip in any folder, e.g. in D:\redis

redis windows 64bits

Step 3: Run the redis-server.exe using the local configuration

redis-server.exe redis.windows.conf

redis windows 64bits - start server

Step 4: Run redis-cli.exe to connect to your redis instance

redis-cli.exe

Result:

D:\redis>redis-cli.exe
127.0.0.1:6379>

Step 5: now, work with redis

D:\redis>redis-cli.exe
127.0.0.1:6379> SET domain tutorialspots.com
OK
127.0.0.1:6379> KEYS *
1) "domain"
127.0.0.1:6379> GET domain
"tutorialspots.com"
127.0.0.1:6379>

1 Comment

Leave a Reply