Don't wave, wretched development. A large wave of Redis interview questions is coming

Get technical dry goods and industry information for the first time!

Don't wave, wretched development.  A large wave of Redis interview questions is coming

There are many small partners in the WeChat group who are conducting interviews, and there are always people from spring to summer. In one of the WeChat groups, I first named it "Spring Interview Exchange Group". Later, I found out that some people had come in to discuss the interview in the past few days, so I changed the group name again. The "Summer Interview Exchange Group" was too troublesome to change, so someone directly asked me to change it to the "Interview Exchange Group in Four Seasons". Still group friends are imaginative!

Following the interview questions yesterday, someone sent me a private message and said they wanted to read the interview questions related to Redis. So, I have sorted out some of them today and shared them with you, hoping to help you!

1. What is the full name of Redis?

This question is probably ignored by many people, but I just like it. The full name is Remote Dictionary Server (remote data service).

2. Why doesn't Redis officially provide a Windows version?

Because the current Linux version is quite stable and the number of users is large, developing the windows version requires more effort, which will bring compatibility and other issues. And Linux has more advantages than Windows in the choice of IO model. We generally develop on windows, but the production environment is still recommended to deploy on Linux, although Microsoft officially provides a redis branch for windows based on the open source of Redis.

3. How to set password and verify password for Redis?

This is also ignored by many people, and even many people do not set a password. Set password: config set requirepass xttblog. Authorization password: auth xttblog.

4. Will there be write operation loss in Redis cluster? why?

If you don’t go into this question, you may not know it. Redis does not guarantee strong data consistency. In practice, the cluster may lose write operations under certain conditions.

5. How to choose a database for Redis cluster?

If you have never done a cluster, you may not know. You don't know which library exists in each set, get, etc. operation. In fact, Redis cluster currently cannot do database selection, the default is 0 database.

Guess you like

Origin blog.51cto.com/15127565/2666207