1, Redis Brief introduction
Redis is a key-value storage system.
Similar to the memcached. It supports storage of value types relative to many other, including string (string), list (linked list), set (set), Zset (sorted set-ordered set), and HASHS (hash type). These data types support Push/pop, Add/remove, and intersection-set and difference sets, and richer operations, and these operations are atomic.
Based on this, Redis supports sorting in a variety of different ways. As with memcached, to ensure efficiency. The data is cached in memory. the difference is that Redis periodically writes the updated data to the disk or writes the change operation to the appended record file. The Master-slave (master-Slave) synchronization is implemented on this basis.
Redis is a high-performance Key-value database.
The advent of Redis. To a large extent compensate for the memcached of such key/value storage, in some cases can be a good complement to the relational database. It provides the Python,ruby. Erlang. Phpclient, very convenient to use.
2. Installing Redis under Windows
Https://github.com/dmajkic/redis/downloads. Redis supports 32bit and 64bit to download. According to their actual situation choice, I choose 32bit. Copy the contents of the 32bit file to a folder that needs to be installed, for example: D:\dev\redis-2.4.5.
Open a CMD form and use the CD command to switch to the specified folder (D:\dev\redis-2.4.5) to perform Redis-server.exe redis.conf . The execution occurs later such as the following interface.
This means that the Redis server has been successfully installed.
Once again, open a CMD form and use the CD command to switch to the specified folder (D:\dev\redis-2.4.5) to perform redis-cli.exe-h 127.0.0.1-p 6379. Among the 127.0.0.1 is the local ip,6379 is the default port of the Redis server. The execution succeeds for example with what is seen.
In this way, the Redis Windows environment is completed, is not very easy.
Such It is not very easy to build the Redis Windows environment.
The environment has been set up, always test it. For example: Store a string with a key of test,value as Hello Word, and then get the key value.
Output hell word correctly. Test success!
Windows installation Redis