installing Redis under Windows
1.redis Introduction
Redis is a key-value storage system. Similar to memcached, it supports storing more value types, including spring (string), list (linked list), set (set), Zset (sorted set-ordered set), and HASHS (hash type). These data types support push/pop,add/remove as well as the intersection and set of differences and the richer operations, and these operations are atomic in nature.
Based on this, Redis supports sorting in a variety of different ways. As with memcached, data is cached in memory to ensure efficiency. The difference is that Redis periodically writes the updated data to disk or writes the modified operation to the appended record file, and Master-slave (Master-Slave) synchronization is implemented on this basis.
2.windows installation of Redis
Https://github.com/dmajkic/redis/downloads. Download to Redis support 32bit64bit.
Open the cmd window and switch to the specified directory (D:\dev\redis\redis-2.4.5) by CD torun Redis-server.exe redis.conf. The following interface appears after running.
This means that the Redis server has been successfully installed.
Reopen a CMD window, switch to the specified directory via the CD command (D:\dev\redis-2.45) run redis-cli.exe-h 127.0.0.1-p 6379-a 123456 Where 127.0.0.1 is the local ip,6379 is the default port on the Redis server and 123456 is the Redis password. The run succeeds as shown in.
In this way, the build of the Redis Windows environment is complete.
Now that the environment is built, EP:
Store a string with a key of test,value as Hello Word, and then get the key value
Correct output hell Word, test success!
Installing Redis under Windows