After learning Memcache, we like the cache system, but we often hear redis,nosql and so on, in order to make their knowledge more solid, but also in order to give themselves a habit of learning, I put through writing articles to urge me to study (I lazy people, not too like to learn, Occasionally, it's fine.), our group of interests: 13768387
Looking back on my career, from ASP to the PHP field, also experienced a lot of ups and downs, the halfway experience is really memorable. Especially when it comes to learning Java, Android! But I chose my hobby, php!. But there is a problem has been to block their way forward, that is the acquisition and mastery of new knowledge! So how to master it? At the beginning, we are the choice to watch video or ask peers, but casual technology updates and project weathering, our knowledge is different, only their own efforts to obtain, but the video basic can not meet, especially the new technology, but we can choose books, manuals, and finally through the source code! So the cool days start!
1. First of all, many people may say that Redis has what it says, so have you studied it? Do you think PHP is simple, then you think you are fully master of the calculation? If yes, then please say the following four groups of answers:
0.59*100=?
0.58*100=?
0.57*100=?
0.56*100=?
If you can answer exactly, then congratulations! Or what? I think that we do not say anything about so easy or simple, that is in the simple application layer, you do not encounter difficulties!
2. I think Redis is a memory, mainly through his key, we find string,set,hash,obj and so on, basically is data structure, so I think is memory!
The official introduction:
Redis is a open source, BSD licensed, Advanced Key-value cache andstore. It's often referred to as adata structure server since keys can containstrings,hashes,lists,sets,sorted sets, bi Tmaps and Hyperloglogs.
3. Is memcache good or is Redis storage data good? (interviewers often ask, including me)
In fact, there is no difference between the two, you say memory is good, or hard disk? Because they two definitions are different, one is the cache data, one is the data storage, although the two have in common, the data can be stored, but the storage method is a bit different, can pass the official explanation of Memcache: Free& Open Source, High-performance, distributed Memory object caching system, generic in nature, but intended for use with speeding up dy Namic Web applications by alleviating database load. Different from Reidis definition
4. Should we use every project?
I'm not sure at the moment, because the first cost, many projects are used space, second, a lot of server memory 2G. and MySQL and the web are on the same machine, not necessarily in the project can be used well! So, be flexible in your project or be prepared! To avoid problems.
5. How do I get to know Redis thoroughly?
I am only at the application level to achieve flexibility is enough, first manual must be familiar with, and then occasionally look at the source code, pay more attention to community issues!
In short, to learn a new knowledge, as long as you work hard, nothing is afraid!
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Getting started with Redis and views