Install Windows
文档
- https://www.runoob.com/redis/redis-install.html (opens new window)
- https://github.com/tporadowski/redis/releases (opens new window)
测试
启动服务端
redis-server.exe redis.windows.conf
1
启动客户端
# 另起一个cmd窗口
redis-cli.exe -h 127.0.0.1 -p 6379
# 设置键值对
set myKey abc
# 取出键值对
get myKey
# 退出
quit
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8