Home  >  Article  >  Database  >  What are the common Redis interview questions?

What are the common Redis interview questions?

WBOY
WBOYforward
2023-05-29 14:58:321012browse

1. What is the full name of Redis?

This question is probably ignored by many people, but I like it. The full name of remote dictionary server is Remote Dictionary Server.

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

Because the current Linux version is quite stable and has a large number of users, developing the windows version requires more energy and will cause compatibility and other issues. Linux has a greater advantage than Windows in selecting IO models. We generally develop on windows, and it is recommended to deploy on Linux for production environments. Although Microsoft officially provides a windows version of redis branch based on the open source of Redis.

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

Many people ignore this point, and many even do not set a password. config set requirepass xttblog - This sentence can be rewritten as: Set password: Set "xttblog" as a required password. Authorization password: auth xttblog.

4. Will write operations be lost in the Redis cluster? Why?

If you don’t go deep into this question, you may not know it. Under certain conditions, Redis Cluster may lose write operations because it does not guarantee strong consistency of data.

5. How to choose a database for Redis cluster?

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

The above is the detailed content of What are the common Redis interview questions?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete