Redis is a good cache database, and reading data is very efficient. Today we work together on the use of Redis. The combination of online information and their own groping, first look at the installation and configuration.
We mainly look at how to use the Redis database on Windows.
: Https://github.com/dmajkic/redis/downloads
1. Select a version to download, and the package includes 32-bit and 64-bit installation tools. We use the 32-bit here.
Download the extracted files such as:
2. Create a Redis folder in D (it is also possible to build on another disk), and then copy all the files under the 32bit folder you extracted to the Redis folder.
3. Open the server side
Open the server side through the cmd command line, first go to the D:\redis folder via the command line,
Then enter the following command Redis-server.exe redis.conf
4. Open the Client
Server-side cmd command line do not close, and then open a separate cmd command line, switch to the D:\redis folder,
Enter the following command: Redis-cli.exe-h 127.0.0.1-p 6379
Then enter set PWD 123456
Get pwd
Gets the return value successfully, indicating that the server-side configuration succeeded,
The above is the installation and configuration of Redis, you are welcome to Exchange
C # connecting the In-memory database Redis "1, installation Configuration"