I have been paying attention to new news in the nosql field for a long time. I was listening to my colleagues a few days ago saying that redis can be used for data storage in our group. I hope my colleagues can check that there is nothing to do at home today, let's look at GRS.Article, One of which is timyang'sSeveral misunderstandings about redisLet's take a good look at redis. I want to take a special look at new things. I 've been writing so many blogs that I 've been trying new things on my own. If I have some insights, let's start with nginx, the author of a very good web server software is one. The author of redis today is also a person. The results of all of them are open source, which has been supported by many open source enthusiasts and are constantly improved, up to now, it is a very stable version. It can be explained from here that to do open source, we need to constantly improve our own dedication, and insist that a good result is inseparable from hard work.
To write redis content, other I will not say, the content on the official website description is very detailed http://code.google.com/p/redis
It's easy to install and compile. Now let's test it.
Test settings
Using PHP for connection I am using the official PHP support version of pdedis. This requires PHP 5.3 support.
Output result after running
Installed, used in the project or need to be studied in depth, first sort it into the key focus software package, and then use it in the project!
Good things should be studied in depth to find a suitable one. It is the most important thing to follow!
Finally, we recommend the redis inside this article http://simonwillison.net/static/2010/redis-tutorial/ can take a good look
Update under 2010.12.08
I got off work early today and checked the related redis information, mainly including the configuration of redis parameters, enabling and disabling redis, and configuring redis as the master, from the perspective of my machine, the performance of redis is not as good as that of memcached, but the advantage is that it will still store data, which needs to be further explored, what we need now is the process and the data we need to store, as well as the analysis and storage of specific services .....
I have compared inserting 10 million records and reading 10 million records. I have simply compared them on my machine and found that memcache is still reliable.
Memcache write
// 9.6323189735413
// 9.7806921005249
// 9.6288208961487
Read
// 9.0019388198853
Redis write
// 10.57616686821
// 10.662456035614
// 10.809334039688
Read
// 14.296465873718
I use predis to connect PHP to redis.
Installation: http://bbs.linuxtone.org/forum-viewthread-tid-7129-highlight-Redis.html
String: http://bbs.linuxtone.org/forum-viewthread-tid-7132-highlight-Redis.html
List: http://bbs.linuxtone.org/forum-viewthread-tid-7133-highlight-Redis.html
Sets: http://bbs.linuxtone.org/forum-viewthread-tid-7134-highlight-Redis.html
Zsets: http://bbs.linuxtone.org/forum-viewthread-tid-7135-highlight-Redis.html
Hash: http://bbs.linuxtone.org/forum-viewthread-tid-7136-highlight-Redis.html
Master/Slave: http://bbs.linuxtone.org/forum-viewthread-tid-7141-highlight-Redis.html