Getting started with Redis
I. Software Installation
Redis: https://github.com/MSOpenTech/redis/releases
Because windows is not officially supported, You need to download it from Microsoft's GitHub.
Decompressed folder content (version 3.2.100 ):
The most common file is redis-server.exe‑redis-cli.exe and a configuration file redis. windows. conf or redis. windows-service.conf.
1. Start redisservice and run cmd.exe
Go to the redis folder
cd desttop/redis
Start redis-server.exe and use the configuration file, as shown in.
redis-server.exe redis.windows.conf
2. Start the client and then start cmd.exe.
Start redis-cli.exe after the folder is inserted.
redis-cli.exe
In international practice, ping helloworld to unlock and master redis achievements.
3) Why is port 6379 used by default?
Redis author antirez said on twitter that he would explain in the next blog (http://oldblog.antirez.com/post/redis-as-LRU-cache.html) why he chose 6379 as the default port number. Now, this blog post explains the LRU mechanism of Redis and explains the reasons for using 6379 as the default port as scheduled. 6379 indicates the number corresponding to MERZ on the mobile phone button, and MERZ is taken from the name of Alessia Merz, an Italian karaoke girl. MERZ has long been synonymous with antirez and its friends as stupid.
Ii. Basic usage
III. C # Use Redis