Redis is a key-value storage system. Similar to memcached, it supports storing more value types, including string (string), list (linked list), set (set), Zset (sorted set-ordered collection), and hash (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, 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.
To get to the bottom, install Redis on our Windows installation below.
Steps
1. Download and install Redis service.
2. Call execute file creation server and test cache.
3. Use the visualizer Redis-desktop-manager to manage the query cache.
1. Download and install Redis service.
: Https://github.com/dmajkic/redis/downloads
Choose the appropriate installation package to download, I choose win7 x64 select "Redis-2.4.5-win32-win64.zip" unzip the file \redis-2.4.5-win32-win64.zip\64bit\ the file to "D:\Redis\ redis-2.4.5 ",
Start Redis
CMD command enters Redis directory, opens service (note plus redis.conf)
D: & CD D:\Redis\redis-2.4.5redis-server.exe redis.conf
The Redis service shuts down automatically when this window is to be turned on and off.
2. Call execute file creation server and test cache.
Reopen a command-line window, enter the Redis directory, create the server, and set the string cache "Key01" equal to "Hello world~", with the following command (note to modify your own IP and port number):
D: & CD D:\Redis\redis-2.4.5
Set Key01 ' Hello world~ '
Get Key01
Get key01 for Hello world~ to show success,
3. Use the visualizer Redis-desktop-manager to manage the query cache.
There are many visual management tools for Redis, sharing an article everyone can try it manually, several open source graphical Redis client management software recommended
After a personal attempt, feeling or redis-desktop-manager more useful,: Http://redisdesktop.com/download
Click on the Windows platform "redis-desktop-manager-0.8.0.3841.exe" Download the installation, after the installation is complete, configure the server information, ip+ port number, after the configuration is complete, open the Administration page can see, just we tested the cache key01,
To this Redis installation setup, you can use Redis for each project development ~
Installation and visualization of Redis on Win7